/**
 * Solar Quote Frontend Styles — AORO Edition
 * Brand: #1F6F5C (AORO Green)
 */

 :root {
    --aoro-green: #1F6F5C;
    --aoro-white: #FFFFFF;
    --aoro-glass: rgba(31, 111, 92, 0.65);
    --aoro-transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.aoro-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 14, 11, 0.92);
    backdrop-filter: blur(15px) saturate(1.8);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--aoro-transition);
}

.aoro-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.aoro-modal-content {
    background: linear-gradient(145deg, rgba(10, 28, 22, 0.99), rgba(8, 22, 17, 0.98));
    width: 95%;
    max-width: 550px;
    max-height: 85vh;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(31, 111, 92, 0.25);
    border-top: 3px solid #1F6F5C;
    position: relative;
    padding: 40px 35px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(31, 111, 92, 0.12);
    color: #fff;
    transform: translateY(40px) scale(0.92);
    transition: var(--aoro-transition);
    font-family: 'Inter', sans-serif;
}

.aoro-modal-overlay.active .aoro-modal-content {
    transform: translateY(0) scale(1);
}

/* Force all text and icons to white — override any browser/theme blue defaults */
.aoro-modal-content,
.aoro-modal-content * {
    color: #ffffff;
}

/* Remove blue browser border from inputs in modal */
.aoro-modal-content input[type="text"],
.aoro-modal-content input[type="email"],
.aoro-modal-content input[type="tel"],
.aoro-modal-content input[type="radio"] {
    border-color: rgba(255,255,255,0.2) !important;
    outline: none !important;
    box-shadow: none !important;
}
.aoro-modal-content input[type="text"]:focus,
.aoro-modal-content input[type="email"]:focus,
.aoro-modal-content input[type="tel"]:focus {
    border-color: rgba(31,111,92,0.8) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(31,111,92,0.25) !important;
}

.aoro-modal-close {
    position: absolute;
    top: 15px !important;
    right: 15px !important;
    background: #1F6F5C !important;
    background-color: #1F6F5C !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 4px 15px rgba(31,111,92,0.4) !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    z-index: 9999 !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

.aoro-modal-close svg {
    width: 28px !important;
    height: 28px !important;
    stroke: #ffffff !important;
    stroke-width: 2.5px !important;
    fill: none !important;
    display: block !important;
}

.aoro-modal-close:hover {
    background: #17573f !important;
    background-color: #17573f !important;
    transform: rotate(90deg) scale(1.1);
    transition: all 0.3s ease;
    opacity: 1 !important;
}

.aoro-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.aoro-modal-logo {
    max-height: 50px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.aoro-modal-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.4;
    max-width: 90%;
    margin: 0 auto;
}

.aoro-progress-container {
    margin-bottom: 30px;
}

.aoro-progress-label {
    text-align: center;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
}

.aoro-progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.aoro-progress-fill {
    height: 100%;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.aoro-form-step {
    display: none;
    animation: aoroSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.aoro-form-step.active {
    display: block;
}

@keyframes aoroSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.aoro-form-step h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #ffffff !important;
}

.aoro-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.aoro-input-group input {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px;
    padding: 14px 20px;
    color: #fff !important;
    font-size: 15px;
    width: 100%;
    transition: var(--aoro-transition);
}

.aoro-input-group input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #fff !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.aoro-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.aoro-radio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.aoro-radio-option {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 18px 15px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    transition: var(--aoro-transition);
    position: relative;
    overflow: hidden;
}

.aoro-radio-option:hover {
    background: rgba(31, 111, 92, 0.2);
    transform: translateY(-2px);
    border-color: rgba(31, 111, 92, 0.4);
}

.aoro-radio-option.selected {
    background: #fff;
    color: var(--aoro-green);
    border-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px) scale(1.02);
}

.aoro-radio-option input {
    position: absolute;
    opacity: 0;
}

.aoro-nav-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.aoro-nav-buttons button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--aoro-transition);
}

.aoro-next-btn,
.aoro-submit-btn {
    background: #1F6F5C !important;
    background-color: #1F6F5C !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(31, 111, 92, 0.4) !important;
    border: none !important;
}

.aoro-next-btn:hover,
.aoro-submit-btn:hover {
    background: #17573f !important;
    background-color: #17573f !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(31, 111, 92, 0.5) !important;
}

.aoro-prev-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.7);
}

.aoro-prev-btn:hover {
    border-color: #fff !important;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.aoro-error-message {
    background: rgba(220, 53, 69, 0.15);
    color: #ffadb7;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    margin-top: 15px;
    text-align: center;
    border: 1px solid rgba(220, 53, 69, 0.25);
    font-size: 12px;
    line-height: 1.3;
    display: none;
}

@keyframes aoroErrorPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
        border-color: rgba(220, 53, 69, 0.6);
        background-color: rgba(220, 53, 69, 0.1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0.1);
        border-color: rgba(220, 53, 69, 1);
        background-color: rgba(220, 53, 69, 0.25);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
        border-color: rgba(220, 53, 69, 0.6);
        background-color: rgba(220, 53, 69, 0.1);
    }
}

.aoro-input-error {
    animation: aoroErrorPulse 2s infinite;
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.aoro-input-error-container .aoro-radio-option {
    animation: aoroErrorPulse 2s infinite;
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.aoro-phone-cta {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 25px;
    position: relative;
}

.aoro-phone-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.aoro-phone-cta p {
    color: #ffffff !important;
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.aoro-phone-cta .phone-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    margin: 5px 0 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--aoro-transition);
}

.aoro-phone-cta .phone-btn:hover {
    background: #fff;
    color: var(--aoro-green) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.aoro-phone-cta .location {
    font-size: 12px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.8) !important;
}

@media (max-width: 600px) {
    .aoro-modal-content {
        padding: 30px 20px;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        overflow-y: auto;
    }
    .aoro-radio-grid {
        grid-template-columns: 1fr;
    }
    .aoro-modal-close {
        top: 15px;
        right: 15px;
    }
}

#aoro-success-message h2 {
    color: #ffffff !important;
    font-size: 28px;
    margin-bottom: 15px;
}

#aoro-success-message p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.aoro-home-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--aoro-transition);
    background: transparent;
    cursor: pointer;
}

/* ============================================================
   ELEMENTOR KIT OVERRIDE — beats .elementor-kit-14961 button
   ID selector has higher specificity than class selector
   ============================================================ */
#aoro-solar-quote-modal button.aoro-next-btn,
#aoro-solar-quote-modal button.aoro-submit-btn {
    background-color: #1F6F5C !important;
    background: #1F6F5C !important;
    border-color: #1F6F5C !important;
    color: #ffffff !important;
}

#aoro-solar-quote-modal button.aoro-next-btn:hover,
#aoro-solar-quote-modal button.aoro-submit-btn:hover {
    background-color: #17573f !important;
    background: #17573f !important;
    border-color: #17573f !important;
    color: #ffffff !important;
}

#aoro-solar-quote-modal button.aoro-modal-close {
    background-color: #1F6F5C !important;
    background: #1F6F5C !important;
    border-color: #1F6F5C !important;
}

#aoro-solar-quote-modal button.aoro-modal-close:hover {
    background-color: #17573f !important;
    background: #17573f !important;
}
.aoro-home-btn:hover {
    background: #ffffff;
    color: var(--aoro-green) !important;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
