/* =====================================================
   ENQUIRY FORM - FLOATING BUTTON & OFFCANVAS
   ===================================================== */

/* ===== FLOATING BUTTON ===== */
.iyeg-enquiry-btn {
    position: fixed;
    right: 0;
    top: 25% !important;
    transform: translateY(-50%) !important;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.75rem;
    background: var(--iyeg-active-green);
    color: var(--iyeg-dark-text);
    border: none;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none !important;
    font-family: "Inter", sans-serif;
    font-weight: 400 !important;
    font-size: var(--iyeg-font-size-sm);
    width: 48px;
    overflow: hidden;
    white-space: nowrap;
}

.iyeg-enquiry-btn:hover {
    transform: translateY(-50%) scale(1.02);
}

.iyeg-enquiry-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.iyeg-enquiry-btn__text {
    opacity: 0;
    width: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.iyeg-enquiry-btn:hover .iyeg-enquiry-btn__text {
    opacity: 1;
    width: auto;
    padding-right: 0.5rem;
}

.iyeg-enquiry-btn:hover {
    width: auto;
}

/* ===== OVERLAY ===== */
.iyeg-enquiry-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.iyeg-enquiry-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== SIDEBAR ===== */
.iyeg-enquiry-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: #0a0a0a;
    z-index: 1001;
    padding: 2rem 2rem 2rem;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.iyeg-enquiry-sidebar.active {
    right: 0;
}

/* ===== CLOSE BUTTON ===== */
.iyeg-enquiry-sidebar__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: all var(--iyeg-transition-base);
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.iyeg-enquiry-sidebar__close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--iyeg-active-green);
    transform: rotate(90deg);
}

/* ===== SIDEBAR CONTENT ===== */
.iyeg-enquiry-sidebar__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 1.5rem;
}

.iyeg-enquiry-sidebar__title {
    font-family: "Barlow Semi Condensed", "Inter", sans-serif;
    font-weight: 700;
    font-size: var(--iyeg-font-size-xl);
    color: #ffffff;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.iyeg-enquiry-sidebar__subtitle {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: var(--iyeg-font-size-sm);
    color: var(--iyeg-text-gray);
    margin-bottom: 2rem;
}

/* ===== FORM FIELDS ===== */
.iyeg-enquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.iyeg-enquiry-field {
    position: relative;
}

.iyeg-enquiry-field__input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* ===== CUSTOM DROPDOWN ARROW ===== */
.iyeg-enquiry-field__input-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--iyeg-text-gray);
    font-size: 0.7rem;
    pointer-events: none;
    transition: all var(--iyeg-transition-base);
    z-index: 2;
}

/* Rotate arrow when select is focused or has value */
/* .iyeg-enquiry-field__select:focus ~ .iyeg-enquiry-field__label + .iyeg-enquiry-field__line {
    
} */

.iyeg-enquiry-field__select:focus ~ .iyeg-enquiry-field__input-wrapper::after {
    transform: translateY(-50%) rotate(180deg);
    color: var(--iyeg-active-green);
}

/* Since we can't target sibling easily, use this approach */
/* .iyeg-enquiry-field__select:focus {
    
} */

/* ===== FIELD ICONS ===== */
.iyeg-enquiry-field__icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--iyeg-icon-green);
    font-size: 1rem;
    z-index: 1;
    transition: color var(--iyeg-transition-base);
    width: 20px;
}

/* ===== INPUT & SELECT ===== */
.iyeg-enquiry-field__input,
.iyeg-enquiry-field__select {
    width: 100%;
    padding: 0.875rem 0 0.5rem 2rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: var(--iyeg-font-size-base);
    outline: none;
    position: relative;
    z-index: 1;
}

.iyeg-enquiry-field__select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Remove default arrow in Firefox */
.iyeg-enquiry-field__select::-ms-expand {
    display: none;
}

/* ===== DROPDOWN OPTIONS STYLING ===== */
.iyeg-enquiry-field__select option {
    background: #1a1a1a;
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-family: "Inter", sans-serif;
    font-size: var(--iyeg-font-size-sm);
}

.iyeg-enquiry-field__select option:checked {
    background: var(--iyeg-active-green);
    color: #000;
}

.iyeg-enquiry-field__select option:hover,
.iyeg-enquiry-field__select option:focus {
    background: rgba(0, 255, 136, 0.15);
    color: #ffffff;
}

.iyeg-enquiry-field__select option:disabled {
    color: rgba(255, 255, 255, 0.3);
}

/* Custom scrollbar for dropdown */
.iyeg-enquiry-field__select optgroup,
.iyeg-enquiry-field__select option {
    scrollbar-width: thin;
    scrollbar-color: var(--iyeg-active-green) transparent;
}

/* ===== LABEL ===== */
.iyeg-enquiry-field__label {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--iyeg-text-gray);
    font-family: "Inter", sans-serif;
    font-size: var(--iyeg-font-size-base);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.iyeg-enquiry-field__input:focus ~ .iyeg-enquiry-field__label,
.iyeg-enquiry-field__input:not(:placeholder-shown) ~ .iyeg-enquiry-field__label,
.iyeg-enquiry-field__select:focus ~ .iyeg-enquiry-field__label,
.iyeg-enquiry-field__select:not(:has(option[value=""]:checked)) ~ .iyeg-enquiry-field__label {
    top: -0.25rem;
    font-size: 0.7rem;
    color: var(--iyeg-active-green);
}

.iyeg-enquiry-field__input:focus ~ .iyeg-enquiry-field__icon,
.iyeg-enquiry-field__select:focus ~ .iyeg-enquiry-field__icon {
    color: var(--iyeg-active-green);
}

/* ===== LINE ===== */
.iyeg-enquiry-field__line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    transition: background var(--iyeg-transition-base);
}

.iyeg-enquiry-field__input:focus ~ .iyeg-enquiry-field__line,
.iyeg-enquiry-field__select:focus ~ .iyeg-enquiry-field__line {
    background: var(--iyeg-active-green);
}

/* ===== SVG ICON STYLES ===== */
.iyeg-enquiry-field__icon--svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: all var(--iyeg-transition-base);
}

.iyeg-enquiry-field__input:focus ~ .iyeg-enquiry-field__icon--svg,
.iyeg-enquiry-field__select:focus ~ .iyeg-enquiry-field__icon--svg {
    opacity: 1;
}

/* ===== SUBMIT BUTTON ===== */
.iyeg-enquiry-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: var(--iyeg-active-green);
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: var(--iyeg-font-size-base);
    transition: all var(--iyeg-transition-base);
    margin-top: 0.5rem;
}

.iyeg-enquiry-form__submit:hover {
    background: var(--iyeg-hover-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 255, 136, 0.2);
}

.iyeg-enquiry-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== TERMS ===== */
.iyeg-enquiry-form__terms {
    font-family: "Inter", sans-serif;
    font-size: var(--iyeg-font-size-xs);
    color: var(--iyeg-text-gray);
    text-align: center;
    margin-top: -0.5rem;
}

.iyeg-enquiry-form__terms a {
    color: var(--iyeg-active-green);
    text-decoration: none;
}

.iyeg-enquiry-form__terms a:hover {
    text-decoration: underline;
}

/* ===== NEWSLETTER TOGGLE ===== */
.iyeg-enquiry-form__newsletter {
    margin-top: 0.5rem;
}

.iyeg-enquiry-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-size: var(--iyeg-font-size-sm);
    color: var(--iyeg-text-gray);
}

.iyeg-enquiry-toggle input {
    display: none;
}

.iyeg-enquiry-toggle__slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #333;
    border-radius: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.iyeg-enquiry-toggle__slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.iyeg-enquiry-toggle input:checked + .iyeg-enquiry-toggle__slider {
    background: var(--iyeg-active-green);
}

.iyeg-enquiry-toggle input:checked + .iyeg-enquiry-toggle__slider::after {
    left: 22px;
    background: #000;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .iyeg-enquiry-btn {
        top: auto;
        bottom: 6rem;
        transform: none;
        border-radius: 8px 0 0 8px;
        padding: 0.625rem 0.625rem;
        width: 44px;
    }
    
    .iyeg-enquiry-btn:hover {
        transform: scale(1.02);
    }
    
    .iyeg-enquiry-sidebar {
        max-width: 100%;
        padding: 1.5rem 1.5rem;
    }
    
    .iyeg-enquiry-sidebar__title {
        font-size: var(--iyeg-font-size-lg);
    }
    
    .iyeg-enquiry-field__input,
    .iyeg-enquiry-field__select {
        font-size: var(--iyeg-font-size-sm);
        padding: 0.75rem 0 0.5rem 1.75rem;
    }
    
    .iyeg-enquiry-field__label {
        font-size: var(--iyeg-font-size-sm);
        left: 1.75rem;
    }
}

@media (max-width: 480px) {
    .iyeg-enquiry-sidebar {
        padding: 1.25rem 1.25rem;
    }
    
    .iyeg-enquiry-sidebar__close {
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
    }
}

@media (min-width: 769px) {
    .iyeg-enquiry-btn {
        top: 50%;
        transform: translateY(-50%);
        bottom: auto;
    }
}