body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top to prevent content overflow issues */
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    max-width: 1200px; /* Increased max-width to accommodate both sections */
    width: 100%;
    overflow: hidden; /* For rounded corners */
}

.form-section {
    flex: 2; /* Takes more space than testimonials */
    padding: 40px;
    box-sizing: border-box;
}

.form-section h2, .form-section h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: bold;
}
.form-section h3 {
    font-size: 1.3em; /* Smaller for the "Create Account" subtitle */
    margin-top: 30px; /* Add space above this section */
}

.form-section input[type="email"],
.form-section input[type="text"],
.form-section input[type="password"], /* Added for new fields */
.form-section input[type="tel"] { /* Added for phone number */
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Ensures padding doesn't increase width */
    font-size: 1em;
}

.form-section .row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-section .row input {
    flex: 1; /* Each input takes equal width in a row */
    margin-bottom: 0; /* Remove default input margin */
}

.phone-group {
    margin-bottom: 15px;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0; /* Remove default padding, handled by input */
    overflow: hidden; /* Keep border radius */
}

.phone-input-wrapper .country-code {
    padding: 12px 10px;
    background-color: #eee;
    border-right: 1px solid #ddd;
    font-size: 1em;
    color: #555;
    white-space: nowrap; /* Prevent wrapping */
}

.phone-input-wrapper input[type="tel"] {
    border: none; /* Remove individual input border */
    margin-bottom: 0; /* Remove margin for tel input */
    padding: 12px;
    flex-grow: 1; /* Allow input to fill remaining space */
}


.payment-option {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.payment-option input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2); /* Make radio button slightly larger */
}

.payment-option label {
    font-weight: bold;
    flex-grow: 1;
}

.stripe-logo {
    font-weight: bold;
    color: #626ebc; /* Stripe's brand color approximation */
    text-transform: uppercase;
    font-size: 0.9em;
}

.submit-button {
    background-color: #007bff;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #0056b3;
}


/* Testimonials Section */
.testimonials {
    flex: 1; /* Takes less space */
    background-color: #f0f2f5; /* Light grey background from your images */
    padding: 40px;
    border-left: 1px solid #eee; /* Separator */
    box-sizing: border-box;
}

.testimonials h3 {
    color: #BA3325; /* Reddish color from image */
    font-size: 1.5em;
    font-weight: bold;
    text-align: right;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.testimonial {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    font-size: 0.95em;
    line-height: 1.5;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 10px;
    color: #444;
}

.testimonial strong {
    color: #333;
    display: block; /* Ensures name is on its own line */
    margin-bottom: 5px;
}

.testimonial span {
    color: #777;
    font-size: 0.85em;
    text-transform: uppercase;
}

/* Error and Success Messages */
.error-message {
    color: #dc3545; /* Bootstrap danger red */
    background-color: #f8d7da; /* Light red background */
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.success-message {
    color: #28a745; /* Bootstrap success green */
    background-color: #d4edda; /* Light green background */
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

/* Accessibility for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    .form-section, .testimonials {
        border-left: none; /* Remove border on smaller screens */
        border-top: 1px solid #eee; /* Add a top border */
    }
}

@media (max-width: 768px) {
    .form-section, .testimonials {
        padding: 25px;
    }
    .form-section .row {
        flex-direction: column; /* Stack inputs vertically on very small screens */
        gap: 0;
    }
    .form-section .row input {
        margin-bottom: 15px; /* Add margin back when stacked */
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .form-section, .testimonials {
        padding: 15px;
    }
    .form-section h2, .form-section h3 {
        font-size: 1.5em;
    }
    .testimonials h3 {
        font-size: 1.2em;
    }
    .submit-button {
        padding: 12px 20px;
        font-size: 1em;
    }
}