/* Registration Form Styles */

.registration-form-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 24px 55px 35px 55px;
    background: #ffffff;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    position: relative;
}

/* Gradient Border */
.registration-form-container.gradient-border {
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(180deg, #FFAA00 0%, #FECF00 100%) border-box;
    border: 5px solid transparent;
}

/* User Type Selection - Now outside form container */
.user-type-selection {
    width: 100%;
    max-width: 1024px;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    gap: 78px;
    color: #38336F;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
    margin-bottom: 30px;
}

.user-type-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-type-option .radio-label {
    color: #38336F;
}

input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #ffffff;
    border-radius: 50%;
    border: 1px solid #38336F;
    width: 28px;
    height: 28px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

input[type="radio"].error {
    border: 1px solid #FF0000;
    background-color: #ffffff;
}

input[type="radio"]:checked {
    background-color: #38336F;
    border: 1px solid #38336F;
}


/* Required Fields Notice */
.required-notice {
    color: #38336F;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 19px;
    margin-top: 0;
    margin-bottom: 30px;
}

.patient-type-option {
    display: flex;
    align-items: center;
    gap: 11px;
    align-items: center;
    cursor: pointer;
    color: #38336F;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
    background: rgba(43, 40, 92, 0.10);
    padding: 8px 16px;
    border-radius: 5px;
}


.patient-type-option input[type="radio"] {
    width: 28px;
    height: 28px;
    margin: 0;
    cursor: pointer;
}

/* .patient-type-option input[type="radio"].error + .error-message {
    top: 30px;
} */

/* Form Fields */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.form-field {
    flex: 1;
}

.form-field.full-width {
    width: 100%;
    margin-bottom: 30px;
}

/* Healthcare Professional Specific Styling */
.healthcare-only-field .form-field.full-width {
    margin-bottom: 30px;
}

/* Other HCP Field - Hidden by default */
.other-hcp-field {
    flex-direction: column;
    animation: fadeIn 0.3s ease-in-out;
}

.other-hcp-field.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 18px;
    margin-bottom: 8px;
    color: #38336F;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #38336F;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 18px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    color: #38336F;
}


.form-input.error,
.form-select.error {
    border-color: #FF0000;
    border: 1px solid #FF0000;
    background-color: #ffffff;
}

/* Error Messages */
.error-message {
    color: #FF0000;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    margin-top: 4px;
    display: none;
    animation: fadeInError 0.3s ease-in-out;
}

.error-message.show {
    display: block;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Field Visibility */
.registration-form-container .healthcare-only-field:not(.hidden) {
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.registration-form-container .patients-only-field:not(.hidden) {
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
}


/* Patient/Caregiver Selection */
.registration-form-container .patient-type-selection:not(.hidden) {
    flex-direction: row;
    align-items: center;
    gap: 23px;
    position: relative;
    margin-bottom: 30px;
}

.patient-type-option.error .error-message {
    position: absolute;
    font-size: 16px;
    top: 55px;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: left;
}

.patients-only-field .form-field.full-width:has(input[name="first_name"].form-input.error) {
    margin-top: 35px;
  }

.registration-form-container .healthcare-only-field.hidden,
.registration-form-container .patients-only-field.hidden {
    display: none;
}

/* Terms and Conditions */
.terms-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #222223;
}

p.terms-text:first-child {
    margin-top: 0px;
}

.terms-text a {
    font-weight: 700;
    text-decoration: underline
}

.terms-text a:hover {
    text-decoration: underline;
}

.submit-btn {
    background: linear-gradient(180deg, #FA0 0%, #FECF00 100%) padding-box,
    linear-gradient(180deg, #FA0 0%, #FECF00 100%) border-box;
    color: #38336F;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
    padding: 16px 71.5px;
    border: 3px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.submit-btn:hover {
    border: 3px solid transparent;
    background: linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(180deg, #FA0 0%, #FECF00 100%) border-box;
}

.submit-btn:active {
    transform: translateY(0);
}

/* Submit Button */
.submit-section {
    display: flex;
    justify-content: left;
}

.form-error-message {
    color: #FF0000;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    margin-top: 10px;
}


.patients-only-field.patient-type-selection .required-notice {
    margin: 0;
    font-size: 16px;
    line-height: 32px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .column-reg-form {
        padding-top: 28px !important   ;
        padding-right: 22px !important;
        padding-bottom: 54px !important;
        padding-left: 22px !important;
    
    }
    .registration-form-container {
       padding: 24px 35px 28px 35px;
    }

    .user-type-option {
        justify-content: space-between;
        width: 100%;
        
    }

    .patient-type-option {
        justify-content: space-between;
    }
    
    .user-type-selection {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        margin-bottom: 20px;
    }


    .registration-form-container .patient-type-selection:not(.hidden) {
        flex-direction: column;
        align-items: normal;
        gap: 0px;
    }

    .patient-type-option:first-of-type {
        margin-bottom: 19px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .patient-type-selection {
        flex-direction: column;
        gap: 15px;
    }

    .field-label {
        margin-bottom: 6px;
    }

    .form-input,
    .form-select {
        padding: 10px 14px;
    }

    .required-notice {
        margin-bottom: 20px;
    }

    .terms-text {
        line-height: 20px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 14px 20px;
    }

    .submit-section {
        justify-content: center;
    }

    .registration-form-container .patient-type-selection .error-message {
        top: 110%;
   
    }
} 
