/* Cookie Styles */
.wh-autofill-suggestion {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 2px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}
.wh-autofill-suggestion:hover {
    background: #f5f5f5;
}
.form-group {
    position: relative;
}

/* Form Styles */


/* Field width classes */
.wh-field-full {
    width: 100%;
    margin-bottom: 15px;
}

.wh-field-half {
    width: 48%;
    margin-right: 2%;
    margin-bottom: 15px;
    display: inline-block;
}

.wh-field-half:nth-child(2n) {
    margin-right: 0;
}

.wh-field-third {
    width: 31%;
    margin-right: 2%;
    margin-bottom: 15px;
    display: inline-block;
}

.wh-field-third:nth-child(3n) {
    margin-right: 0;
}

.wh-form-clear {
    display: block;
    clear: both;
    margin-top: 15px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .wh-field-half,
    .wh-field-third {
        width: 100%;
        margin-right: 0;
    }
}

/* Form styling */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.required {
    color: #dc3232;
}

.radio-option {
    margin-bottom: 5px;
}

.radio-option label {
    display: inline;
    margin-left: 5px;
}

.wh-form-2-col {
    display: flex;
    justify-content: flex-start;
}

.wh-form-one-half {
    width: 50%;
}

.wh-form-one-half:first-child {
    margin-right: 20px;
}

.wh-form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.wh-form-message.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.wh-form-message.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.wh-form.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.wh-form.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Floating Contact */
.wh-quick-contact {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
}

/* Bottom Right positioning */
.wh-quick-contact.bottom-right {
    right: 20px;
}

/* Bottom Left positioning */
.wh-quick-contact.bottom-left {
    left: 20px;
}

.wh-contact-bubble {
    background: var(--wh-bubble-bg, #0073aa);
    color: var(--wh-bubble-text, #ffffff);
    border: none;
    border-radius: 24px;
    padding: 12px 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
    font-weight: 600;
}

.wh-contact-bubble:hover {
    background: var(--wh-bubble-bg-hover, #005f8a);
    color: var(--wh-bubble-text-hover, #ffffff);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.wh-contact-bubble:active {
    background: var(--wh-bubble-bg-active, #004b6c);
    color: var(--wh-bubble-text-active, #ffffff);
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.wh-bubble-icon { font-size: 18px; }
.wh-bubble-text { font-size: 14px; letter-spacing: .2px; }

.wh-contact-popup {
    position: fixed;
    bottom: 80px;
    width: 450px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    display: none; /* overridden for mobile */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9998; /* keep below bubble */
}

/* Bottom Right positioning */
.bottom-right .wh-contact-popup {
    right: 20px;
}

/* Bottom Left positioning */
.bottom-left .wh-contact-popup {
    left: 20px;
}

.wh-contact-popup.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.wh-popup-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eef0f2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wh-popup-header h3 {
    margin: 0;
    font-size: 18px;
}

.wh-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    color: #666;
}

.wh-popup-close:hover { color: #222; }

.wh-popup-content {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

/** Form specific styles for the popup **/
.wh-contact-popup .wh-form {
    margin: 0;
}

.wh-contact-popup .fl-input,
.wh-contact-popup .fl-select,
.wh-contact-popup .fl-textarea {
    width: 100%;
    margin-bottom: 15px;
}

.fl-select {
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.428571429;
    color: #6a6b71;
    background-color: #fcfcfc;
    background-image: none;
    border: 1px solid #e6e6e6;
}

.preferred-contact-form-group {
    display: flex;
    align-items: center;
}

.preferred-contact-form-group label {
    margin-right: 20px;
}

.radio-group {
    margin-top: 5px;
}

.radio-label {
    display: inline-block;
    margin-right: 20px;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    margin-right: 5px;
}

/* Returning user banner */
.wh-returning-banner {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: #ccc 1px solid;
    display: block;
    gap: 10px;
}
.wh-returning-text { font-weight: 600; color: #000; display: block; font-size: 1.2em;}
.wh-reset-returning { font-size: 12px; color: #888; text-decoration: underline; text-transform: uppercase;}
.wh-reset-returning:hover { color: #00486b; }

.wh-hidden { display: none !important; }

#message {
    height: 100px;
}

@media (max-width: 992px) {
    .wh-quick-contact {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .wh-contact-bubble {
        width: 100%;
        border-radius: 0;
        justify-content: center;
        text-align: center;
        padding: 12px;
        z-index: 9999;
    }
    .wh-contact-popup {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        transform: translateY(100vh);
        transition: transform 0.3s ease-out;
        display: block; /* ensure element is renderable for transition */
        opacity: 1; /* avoid opacity transition conflicts */
        pointer-events: none; /* disabled when closed */
        will-change: transform;
    }
    .wh-contact-popup.active {
        transform: translateY(0);
        pointer-events: auto;
    }
    .wh-popup-content {
        max-height: none;
        height: calc(100vh - 56px);
        overflow-y: auto;
    }
}

/* Lock body scroll when mobile overlay is open */
@media (max-width: 480px) {
    body.wh-lock-scroll {
        overflow: hidden;
        height: 100vh;
    }
}

/* Account for WP admin bar on mobile overlay */
@media (max-width: 782px) {
    body.admin-bar .wh-contact-popup {
        top: 46px;
        height: calc(100vh - 46px);
    }
    body.admin-bar .wh-popup-content {
        height: calc(100vh - 46px - 56px);
    }
}


/** Multi Step Form Styles */

/* Progress indicator styles */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.progress-step {
    flex: 1;
    text-align: center;
    padding: 10px;
    position: relative;
    color: #666;
}

.progress-step::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 20px;
    height: 20px;
    background: #ddd;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.progress-step::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #ddd;
}

.progress-step.active {
    color: #066aab;
}

.progress-step.active::after {
    background: #066aab;
}

.progress-step.completed::after {
    background: #28a745;
}

/* Form step styles */
.form-step {
    display: none;
    animation: fadeIn 0.5s;
}

.form-step.active {
    display: block;
}

.form-navigation {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}