/* FV Contact Form Block Styles */
.fv-contact-form {
    position: relative;
    width: 100%;
    padding: 1rem 2px;
    overflow: hidden;
}

.fv-contact-form__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.fv-contact-form__content {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    justify-content: space-between;
}

/* Left Section: Contact Information */
.fv-contact-form__info {
    flex: 1;
    max-width: 540px;
}

.fv-contact-form__icon {
    margin-bottom: 1.5rem;
}

.fv-contact-form__icon svg {
    width: 48px;
    height: 48px;
}

.fv-contact-form__title {
    font-size: 2.25rem;
    font-weight: 600;
    color: #404040;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
}

.fv-contact-form__description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #404040;
}

.fv-contact-form__contact-details {
    padding-top: 2rem;
    border-top: 1px solid #D6D6D6;
}

.fv-contact-form__contact-title {
    font-weight: 500;
    color: #404040;
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
}

.fv-contact-form__contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #023C69;
    font-size: 1rem;
}

.fv-contact-form__contact-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Right Section: Contact Form */
.fv-contact-form__form-wrapper {
    flex: 1;
    max-width: 600px;
}

.fv-contact-form__form {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fv-contact-form__form-title {
    color: #023C69;
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0 0 1.5rem 0;
}

.fv-contact-form__field {
    margin-bottom: 1.5rem;
    width: 100%;
}

.fv-contact-form__field label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.fv-contact-form__field label.required:after {
    content: "*";
    color: #FF0000;
}

.fv-contact-form__field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]) {
    height: 42px;
}

.fv-contact-form__field input[type="text"],
.fv-contact-form__field input[type="email"],
.fv-contact-form__field input[type="tel"],
.fv-contact-form__field input[type="date"],
.fv-contact-form__date-input,
.fv-contact-form__field select,
.fv-contact-form__field textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #B8B8B8;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #374151;
    background-color: #F9FAFB;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
    .fv-contact-form__field input[type="text"],
    .fv-contact-form__field input[type="email"],
    .fv-contact-form__field input[type="tel"],
    .fv-contact-form__field input[type="date"],
    .fv-contact-form__date-input,
    .fv-contact-form__field select,
    .fv-contact-form__field textarea {
        font-size: 0.95rem;
    }
}

.fv-contact-form__field input[type="text"]:focus,
.fv-contact-form__field input[type="email"]:focus,
.fv-contact-form__field input[type="tel"]:focus,
.fv-contact-form__field input[type="date"]:focus,
.fv-contact-form__date-input:focus,
.fv-contact-form__field select:focus,
.fv-contact-form__field textarea:focus {
    outline: none;
    border-color: #023C69;
    box-shadow: 0 0 0 3px rgba(0, 155, 223, 0.1);
}

.fv-contact-form__field input::placeholder,
.fv-contact-form__field textarea::placeholder {
    color: #9CA3AF;
}

.fv-contact-form__field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Date input: extra padding for calendar icon, custom calendar picker indicator */
.fv-contact-form__field input[type="date"],
.fv-contact-form__date-input {
    padding-right: 2.5rem;
    position: relative;
    z-index: 1;
}

.fv-contact-form__field input[type="date"]::-webkit-calendar-picker-indicator,
.fv-contact-form__date-input::-webkit-calendar-picker-indicator {
    color: rgba(0, 0, 0, 0);
    opacity: 1;
    display: block;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="%236B7280" d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"/></svg>') no-repeat;
    width: 20px;
    height: 20px;
    background-position: center;
    cursor: pointer;
    position: absolute;
    right: 0.5rem;
}

.fv-contact-form__phone-wrapper {
    width: 100%;
}

.fv-contact-form__input-wrapper {
    width: 100%;
}

.fv-contact-form__field textarea {
    resize: vertical;
    min-height: 100px;
}

/* File input: one box, blue "Choose File" left, separator, grey "No file chosen" right, no layout break */
.fv-contact-form__field input[type="file"] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 42px;
    margin: 0;
    font-size: 0.95rem;
    color: #6B7280;
    background-color: #ffffff;
    border: 1px solid #B8B8B8;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.fv-contact-form__field input[type="file"]::file-selector-button {
    box-sizing: border-box;
    margin: 0 1rem 0 0;
    padding: 0.5rem 1rem;
    border: none;
    border-right: 1px solid #B8B8B8;
    border-radius: 0.5rem 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #023C69;
    background-color: #ffffff;
    cursor: pointer;
    transition: color 0.2s ease;
}

.fv-contact-form__field input[type="file"]::file-selector-button:hover {
    color: #007bb3;
}

/* Custom file UI wrapper (translated "Choose File" / "No file chosen") – native input is hidden on top */
.fv-contact-form__file-custom-wrap {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    background-color: #ffffff;
    border: 1px solid #B8B8B8;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.fv-contact-form__file-custom-wrap .fv-contact-form__file-native {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.fv-contact-form__file-custom-wrap .fv-contact-form__file-custom-ui {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: stretch;
    pointer-events: none;
    z-index: 1;
}

.fv-contact-form__file-custom-wrap .fv-contact-form__file-custom-btn {
    padding: 0.5rem 1rem;
    border-right: 1px solid #B8B8B8;
    font-size: 0.95rem;
    font-weight: 500;
    color: #023C69;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    border-radius: 0.5rem 0 0 0.5rem;
}

.fv-contact-form__file-custom-wrap .fv-contact-form__file-custom-label {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    color: #6B7280;
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fv-contact-form__submit {
    width: 100%;
    padding: 0.85rem 2rem;
    background-color: #023C69;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 155, 223, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.fv-contact-form__submit:hover {
    background-color: #007bb3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 155, 223, 0.3);
}

.fv-contact-form__submit:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .fv-contact-form__content {
        flex-direction: column;
        gap: 3rem;
    }

    .fv-contact-form__info {
        max-width: 100%;
    }

    .fv-contact-form__form-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .fv-contact-form {
        padding: 3rem 0;
    }

    .fv-contact-form__container {
        padding: 0 1.5rem;
    }

    .fv-contact-form__content {
        gap: 2rem;
    }

    .fv-contact-form__title {
        font-size: 1.5rem;
    }

    .fv-contact-form__description {
        font-size: 1rem;
    }

    .fv-contact-form__form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .fv-contact-form__title {
        font-size: 1.25rem;
    }

    .fv-contact-form__phone-wrapper {
        flex-direction: column;
    }
}

/* intl-tel-input overrides */
.fv-contact-form__phone-wrapper .iti {
    width: 100%;
}

.fv-contact-form__phone-wrapper .iti__selected-country {
    background: #b8b8b887;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.fv-contact-form__phone-wrapper .iti__selected-country .iti__selected-country-primary {
    background: transparent !important;
}

.fv-contact-form__phone-wrapper .iti__selected-country .iti__selected-dial-code {
    margin-right: 8px;
}

.fv-contact-form__phone-wrapper .iti__country-container {
    width: 100%;
}

.fv-contact-form__phone-wrapper .iti--allow-dropdown input,
.fv-contact-form__phone-wrapper .iti--allow-dropdown input[type="tel"] {
    padding-left: 5.5rem !important;
    background-color: #F9FAFB;
    border: 1px solid #B8B8B8;
    height: 42.3px;
}

.fv-contact-form__phone-wrapper .iti__selected-flag {
    background-color: #F9FAFB !important;
    border-right: 1px solid #B8B8B8;
}

.fv-contact-form__phone-wrapper .iti__country-list {
    z-index: 20;
    max-height: 240px;
}

/* Form Validation Error Styles */
.fv-form-field-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 1px #dc2626 !important;
}

.fv-form-error-message {
    display: block;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.fv-form-general-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    color: #991b1b;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
}

.fv-form-general-error strong {
    display: block;
    font-weight: 600;
}

.fv-form-success-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
    color: #166534;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
}

.fv-form-success-message strong {
    display: block;
    font-weight: 600;
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Modal (Doctor/Nurse Registration) */
#fv-success-modal svg {
    width: 64px;
    height: 64px;
}

#fv-success-modal h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1f2937;
}

#fv-success-modal hr {
    border-color: #e5e7eb;
}

#fv-success-modal p {
    font-size: 0.9375rem;
    line-height: 1.6;
}