/* ================================
   CRITICAL MODAL FIX - MUST BE FIRST
   ================================ */
.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1055 !important;
}

.modal-dialog {
    z-index: 1056 !important;
}

.modal-content {
    z-index: 1057 !important;
    background-color: #ffffff !important;
}

.modal-body,
.modal-header,
.modal-footer {
    background-color: #ffffff !important;
    color: #212121 !important;
}

/* ================================
   Home Value Haven - Extras Stylesheet
   PROFESSIONAL GREEN THEME - Matching Main Site
   Updated: 2025-10-22
   ================================ */

/* Form Labels */
.form-label {
    font-size: 16px;
    font-weight: 600;
    color: #1a4d2e;
    margin-bottom: 0.5rem;
}

/* Selection Options - Green Theme */
.aq-select-label-option {
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    padding: 1.25rem 0.875rem;
    border: 3px solid #e1ebe5;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(26, 77, 46, 0.08);
    position: relative;
    overflow: hidden;
    min-height: 110px;
}

/* Row spacing for extras */
.extras-form-steps .row.justify-content-center {
    row-gap: 1rem;
}

.extras-form-steps .col-sm-12 {
    margin-bottom: 0;
}

.aq-select-label-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a4d2e 0%, #2d6b47 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.aq-select-label-option::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #4f9d69 0%, #6ab88a 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.aq-select-label-option:hover {
    background-color: #ffffff;
    border: 3px solid #4f9d69;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(26, 77, 46, 0.15);
}

.aq-select-label-option:hover::before {
    opacity: 0.06;
}

.aq-select-label-option:hover::after {
    transform: scaleX(1);
}

/* Radio button checked states */
input[type="radio"]:checked + label {
    color: #1a4d2e;
    font-weight: 700;
}

input[type="radio"]:checked + .aq-select-label-option {
    border-color: #4f9d69;
    background-color: rgba(79, 157, 105, 0.05);
}

input[type="radio"]:checked + .aq-select-label-option::after {
    transform: scaleX(1);
}

.select-box input[type="radio"]:checked + label .select-img,
input[type="radio"]:checked + img#img-icon,
#sunny-excellent:checked + .select-img {
    filter: brightness(100%);
    transform: scale(1.1);
}

.aq-select-label-option:hover .aq-select-img {
    filter: brightness(100%);
    transform: scale(1.15);
}

.aq-select-label-option:hover .aq-box-option-title {
    color: #1a4d2e;
}

/* Box Title */
.aq-box-option-title {
    font-weight: 800;
    font-size: 1rem;
    color: #212121;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
    text-align: center;
}

/* Select Images */
.aq-select-img {
    width: 100%;
    max-width: 56px;
    margin: 0.5rem auto;
    opacity: 0.85;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Logo Styles */
.ant-logo {
    margin-bottom: 2rem;
}

.ant-logo img {
    max-width: 120px;
}

.ant-logo-modal {
    height: auto;
    width: auto;
    position: relative;
    text-align: center;
}

/* Modal Styles - Green Theme */
.aq-modal-header {
    border-bottom: 2px solid #4f9d69;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e8f3ed 0%, #ffffff 100%);
}

.modal-question {
    padding-left: 20px;
    padding-right: 20px;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body legend {
    color: #1a4d2e;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.modal-body .form-select {
    border: 2px solid #e1ebe5;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    transition: all 0.3s ease;
}

.modal-body .form-select:focus {
    border-color: #4f9d69;
    box-shadow: 0 0 0 3px rgba(79, 157, 105, 0.15);
    outline: none;
}

/* Form Steps */
.extras-form-steps {
    display: none;
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

.extras-form-steps:first-of-type {
    display: block;
}

.extras-form-steps legend.questions {
    color: #1a4d2e;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
}

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

.extras-form-wrapper {
    margin: 0.75rem auto;
    width: 100%;
    padding: 1.5rem 1.25rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(26, 77, 46, 0.16);
}

/* Extra Box on Top - Green Theme */
.extra-box-on-top {
    background: linear-gradient(135deg, #1a4d2e 0%, #2d6b47 100%);
    color: #fff;
    padding: 1.25rem 1rem;
    box-shadow: 0 4px 20px rgba(26, 77, 46, 0.15);
    border-radius: 16px;
    position: relative;
    z-index: 10;
}

/* Arrow Animation */
.arrow-down {
    position: absolute;
    bottom: -70px;
    right: -75px;
    width: 90px;
    z-index: 9999;
    animation: downarrow 0.6s infinite alternate ease-in-out;
}

@keyframes downarrow {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(0.5em); opacity: 1; }
}

.view-new-mortgage-top {
    color: #4f9d69;
    position: relative;
    font-weight: 800;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .extras-form-wrapper {
        margin: 0.75rem auto;
        width: 100%;
        padding: 2rem 1.5rem;
        border-radius: 20px;
        overflow: hidden;
        position: relative;
    }

    .aq-form-label {
        font-size: 18px;
    }

    .aq-select-label-option {
        padding: 1.5rem 1rem;
    }

    .aq-select-img {
        max-width: 70px;
        margin: 0.75rem auto;
    }

    .ant-logo img {
        max-width: 160px;
    }
}

/* ================================
   THANK YOU PAGE STYLES - GREEN THEME
   ================================ */

#chart-ty {
    margin-top: -75px;
}

@media (min-width: 992px) {
    #chart-ty {
        margin-top: -92px;
    }
}

/* Amount Box - Green Theme */
.amount-box {
    padding: 18px 10px;
    border-radius: 12px;
    border: 4px solid #4f9d69;
    max-width: 200px;
    width: 100%;
    margin: 0 auto 3rem;
    background-color: rgba(79, 157, 105, 0.05);
    position: relative;
    text-align: right;
    box-shadow: 0 10px 32px rgba(79, 157, 105, 0.2);
}

@media (min-width: 992px) {
    .amount-box {
        padding: 30px 15px;
        max-width: 280px;
        margin-bottom: 3rem;
    }
}

.amount-box:before {
    content: '$';
    font-size: 28px;
    font-weight: 800;
    color: #4f9d69;
    position: absolute;
    left: 10px;
    top: 11px;
}

@media (min-width: 992px) {
    .amount-box:before {
        font-size: 42px;
        left: 10px;
        top: 25px;
        z-index: 99;
    }
}

.amount-box-text {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    color: #1a4d2e;
}

@media (min-width: 992px) {
    .amount-box-text {
        font-size: 46px;
        z-index: 999;
        position: relative;
    }
}

/* Steps - Green Theme */
.step-ty {
    background: linear-gradient(135deg, #4f9d69 0%, #6ab88a 100%);
    color: #fff;
    border-radius: 50%;
    height: 60px;
    width: 60px;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(79, 157, 105, 0.3);
}

@media (min-width: 768px) {
    .step-ty {
        height: 80px;
        width: 80px;
    }
}

.step-ty-text {
    font-size: 11px;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .step-ty-text {
        font-size: 14px;
    }
}

.step-ty-number {
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
}

@media (min-width: 768px) {
    .step-ty-number {
        font-size: 34px;
    }
}

.step-ty-description {
    background-color: #f8faf9;
    padding: 1rem;
    font-weight: 500;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Additional Offers - Green Theme */
.ty-additional-offers {
    border: 2px solid #e1ebe5;
    padding: 2rem 1rem;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .ty-additional-offers {
        padding: 2rem;
    }
}

.ty-offer-container {
    border: 2px solid #4f9d69;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

@media (min-width: 768px) {
    .ty-offer-container {
        padding: 1.5rem 2rem;
    }
}

.ty-offer-container:hover {
    box-shadow: 0 8px 32px rgba(79, 157, 105, 0.2);
    transform: translateY(-4px);
}

/* Custom Max Widths */
.custom-mw-921 {
    max-width: 921px;
    margin-left: auto;
    margin-right: auto;
}

.custom-mw-720 {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Offer Button - Green Theme */
.ty-offer-button {
    color: #fff;
    background: linear-gradient(135deg, #4f9d69 0%, #6ab88a 100%);
    font-weight: 600;
    width: 100%;
    max-width: 190px;
    transition: all 0.3s ease;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(79, 157, 105, 0.3);
}

.ty-offer-button:hover {
    color: #fff;
    background: linear-gradient(135deg, #1a4d2e 0%, #2d6b47 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 77, 46, 0.3);
}

/* Chat Box - Green Theme */
.chat-box {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    background-color: #fff;
    padding-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(26, 77, 46, 0.12);
}

.chat-box-heading {
    padding: 20px 30px;
    background: linear-gradient(135deg, #1a4d2e 0%, #2d6b47 100%);
    color: #ffffff;
}

.chat-box-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.chat-box-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
}

.chat-box-date {
    text-align: center;
    padding: 10px;
    color: #6b6b6b;
    font-weight: 500;
}

.chat-box-body {
    padding: 10px 30px;
}

/* Messages - Green Theme */
.agent-message {
    background-color: #f8faf9;
    padding: 20px 25px;
    border-radius: 20px;
    border-top-left-radius: 0;
    margin-bottom: 25px;
    color: #212121;
    max-width: 620px;
    width: auto;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(26, 77, 46, 0.06);
}

.user-message {
    background: linear-gradient(135deg, rgba(79, 157, 105, 0.15) 0%, rgba(106, 184, 138, 0.15) 100%);
    padding: 20px 25px;
    border-radius: 20px;
    border-top-right-radius: 0;
    margin-bottom: 15px;
    color: #212121;
    max-width: 620px;
    width: auto;
    display: block;
    line-height: 1.6;
    border: 2px solid #4f9d69;
}

.chat-box-agent-reply {
    display: flex;
}

.agent-profile {
    margin-right: 15px;
}

.chat-box-user-reply {
    display: flex;
    justify-content: flex-end;
    display: none;
}

.user-reply {
    display: flex;
    flex-direction: column;
}

/* Textarea - Green Theme */
#user-textarea {
    width: 100%;
    padding: 1.5rem 1rem;
    height: 100%;
    border-radius: 0;
    min-height: 78px;
    padding-right: 50px;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.textarea-wrapper {
    margin-top: 1rem;
    padding: 0;
}

.textbox-form {
    position: relative;
    width: 100%;
    border: 2px solid #e1ebe5;
    padding-right: 50px;
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.textbox-form:focus-within {
    border-color: #4f9d69;
}

#user-send {
    position: absolute;
    border: none;
    background-color: transparent;
    padding: 0 0 0 15px;
    top: 16px;
    right: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.send-btn-icon {
    color: #4f9d69;
    font-size: 24px;
}

#user-textarea:focus::placeholder {
    color: transparent;
}

#user-textarea:focus {
    box-shadow: none;
    border: none;
    outline: none;
}

#user-send:hover .send-btn-icon {
    color: #1a4d2e;
    transform: scale(1.1);
}

/* Scrollbar Styles - Green Theme */
#user-textarea::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0,0,0,0.05);
    border-radius: 0;
    background-color: #ffffff;
}

#user-textarea::-webkit-scrollbar {
    width: 5px;
    background-color: #F5F5F5;
}

#user-textarea::-webkit-scrollbar-thumb {
    border-radius: 5px;
    box-shadow: inset 0 0 6px rgba(0,0,0,.15);
    background-color: #4f9d69;
}

/* Dark Background - Green Theme */
.dark-bg {
    background: linear-gradient(135deg, #1a4d2e 0%, #2d6b47 100%);
    color: #ffffff;
}

/* Selected state for modal options - Green Theme */
.modal .select-label-option.selected {
    border-color: #4f9d69 !important;
    background-color: rgba(79, 157, 105, 0.1) !important;
    transform: translateY(-4px) !important;
}

.modal .select-label-option.selected .box-option-title {
    color: #1a4d2e !important;
}

/* Make sure modal elements are clickable */
.modal .select-box,
.modal .select-label-option,
.modal input[type="radio"] {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Result for Address - Green Theme */
.result-for-address {
    color: #ffffff !important;
}

/* Shading - Green Theme */
.shading {
    text-shadow: 2px 2px 8px rgba(26, 77, 46, 0.3);
}