/* General Styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f7fa;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Form styles */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Input fields */
input[type="text"],
input[type="submit"] {
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

/* Focus styles for input fields */
input[type="text"]:focus,
input[type="submit"]:focus {
    border-color: #66cc66;
    box-shadow: 0 0 5px rgba(102, 204, 102, 0.5);
}

/* Submit button */
input[type="submit"] {
    background-color: #66cc66;
    color: white;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

/* Submit button hover */
input[type="submit"]:hover {
    background-color: #4caf50;
}

/* Form labels */
label {
    font-size: 14px;
    font-weight: bold;
    color: #555;
}

/* Result sections */
h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

ul {
    list-style: none;
    padding-left: 0;
}

.list {
    font-size: 16px;
    margin: 8px 0;
    padding: 10px;
    border-radius: 6px;
    background-color: #f9f9f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.list strong {
    color: #333;
}

/* Styling for the Web 2.0 button */
.cta-button {
    margin-top: 15px;
    text-align: center;
}

.cta-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #4caf50;
    color: #ffffff !important;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: #45a049;
}

/* Early Termination Fee */
.early-termination-fee {
    font-weight: bold;
    color: #ff5b5b;
    background-color: #ffe0e0;
    padding: 5px 10px;
    border-radius: 6px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 10px; /* Reduced padding for better readability */
    }

    /* Mobile View Adjustment */
    .contract-instance {
        flex-direction: column; /* Switch to column layout on mobile */
    }

    .contract-details, 
    .contract-image {
        width: 100%;
        padding: 0;
    }

    /* Break the text into separate lines on mobile */
    .contract-details p {
        display: block;
        margin-bottom: 5px; /* Add spacing between label and value */
    }

    .contract-details p strong {
        display: block; /* Force label and value onto separate lines */
    }

    /* Mobile-specific li styling */
    li strong {
        display: block; /* Force label and value onto separate lines */
        margin-bottom: 2px;
    }

    li {
        padding: 10px;
    }
}

/* Desktop layout (Default) */
.contract-instance {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.contract-details {
    flex: 0 0 60%;
    padding-right: 10px;
    box-sizing: border-box;
}

.contract-image {
    flex: 0 0 40%;
    padding-left: 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.contract-image img {
    width: 100%;
    max-width: 350px;
    max-height: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}
