/* ==========================================================================
   BRAND IDENTITY & CORE STYLES
   ========================================================================== */
:root {
    /* Official Brand Colors */
    --brand-gold: #cfa144;
    --brand-gold-hover: #e5b85a;

    /* UI Palette */
    --bg-color: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
}


body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Typography refinements matching your main site */
h1, h2, h3, .font-serif {
    font-family: 'Playfair Display', serif;
}

/* ==========================================================================
   NEXT-GEN HOMEPAGE UTILITIES
   ========================================================================== */
.hero-bg {
    background: radial-gradient(circle at top right, rgba(207, 161, 68, 0.08) 0%, transparent 40%),
                radial-gradient(circle at bottom left, rgba(26, 54, 40, 0.05) 0%, transparent 40%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-gold) 0%, #b5852a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-gold);
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(3deg);
    background-color: var(--brand-gold);
    color: white;
}

/* ==========================================================================
   LEASE WIZARD UI
   ========================================================================== */
.wizard-container {
    background: var(--card-bg);
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    padding: 40px;
    margin: 40px auto;
}

.progress-header h2 {
    margin-top: 0;
    font-size: 28px;
    color: var(--brand-green);
}

.progress-bar-container {
    background: var(--border-color);
    height: 6px;
    border-radius: 3px;
    margin: 20px 0 10px;
    overflow: hidden;
}

.progress-bar {
    background: var(--brand-gold);
    height: 100%;
    transition: width 0.3s ease;
}

.step-indicator {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 500;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

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

.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.input-row {
    display: flex;
    gap: 15px;
}

.input-row .input-group {
    flex: 1;
}

label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--brand-green);
}

input, .styled-select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
    background-color: #FAFAFA;
}

input:focus, .styled-select:focus {
    outline: none;
    border-color: var(--brand-gold);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(207, 161, 68, 0.15);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
button, .btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--brand-green);
    color: white;
    box-shadow: 0 4px 14px rgba(26, 54, 40, 0.2);
}

.btn-primary:hover {
    background: #11241a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 54, 40, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--brand-green);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--brand-green);
    background: rgba(26, 54, 40, 0.05);
}

.btn-accent {
    background: var(--brand-gold);
    color: white;
}

.btn-accent:hover {
    background: var(--brand-gold-hover);
}

.button-group {
    margin-top: 30px;
    display: flex;
}

.button-group.right {
    justify-content: flex-end;
}

.button-group.split {
    justify-content: space-between;
}

/* Screening UI Styles */
.screening-container {
    max-width: 700px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.package-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.package-card {
    cursor: pointer;
    position: relative;
}

.package-card input[type="radio"] {
    display: none; /* Hide the actual radio button */
}

.package-card .card-content {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    background: #fff;
    height: 100%;
}

/* Highlight the card when selected */
.package-card input[type="radio"]:checked + .card-content {
    border-color: #0056b3;
    background-color: #f8fbff;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.15);
}

.card-content h4 {
    margin-top: 0;
    color: #333;
}

.card-content .price {
    font-size: 24px;
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 15px;
}

.card-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: #555;
}

.card-content ul li {
    margin-bottom: 8px;
}

/* Add-ons Styling */
.addons-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.addon-toggle {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.addon-toggle:hover {
    border-color: #bbb;
}

.addon-toggle input[type="checkbox"] {
    margin-right: 15px;
    transform: scale(1.3);
}

.addon-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.addon-desc {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

.addon-price {
    font-weight: bold;
    color: #444;
}

/* Disabled State for Credit Report */
.addon-toggle.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f1f1f1;
}

.addon-badge {
    background: #ffc107;
    color: #856404;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
}

/* Footer & Button */
.screening-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.btn-primary {
    background: #0056b3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #004494;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ==========================================================================
   GLOBAL AI CHATBOT WIDGET
   ========================================================================== */
.chatbot-window {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.chatbot-window.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-bubble-user {
    background-color: var(--brand-green);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-bubble-bot {
    background-color: #f1f5f9;
    color: var(--text-main);
    border-bottom-left-radius: 4px;
}

.dark .chat-bubble-bot {
    background-color: #1e293b;
    color: #f8fafc;
}

.typing-indicator span {
    animation: blink 1.4s infinite both;
    height: 6px;
    width: 6px;
    background: #94a3b8;
    border-radius: 50%;
    display: inline-block;
    margin: 0 1px;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0% { opacity: 0.2; transform: scale(0.8); }
    20% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.2; transform: scale(0.8); }
}

/* ==========================================================================
   SmartLord Promo Popup Styles
   ========================================================================== */
.promo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeInPopup 0.4s ease forwards;
}

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

.promo-popup-container {
    background-color: #ffffff;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    display: flex;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(20px);
    animation: slideUpPopup 0.4s ease forwards;
}

@keyframes slideUpPopup {
    from { transform: translateY(20px); }
    to { transform: translateY(0); }
}

.promo-popup-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
}

.promo-popup-close-btn:hover {
    color: #000;
}

.promo-popup-content {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.promo-popup-image-section {
    flex: 1;
    background-color: #f4f6f8;
    display: none; /* Hidden on mobile to save space */
}

@media (min-width: 768px) {
    .promo-popup-image-section {
        display: block;
        max-width: 45%;
    }
}

.promo-popup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-popup-text-section {
    flex: 1.5;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 12px;
    font-family: inherit;
}

.promo-popup-desc {
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.5;
    margin-bottom: 24px;
}

.promo-popup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promo-popup-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.promo-popup-input:focus {
    border-color: #0056b3;
}

.promo-popup-submit-btn {
    width: 100%;
    padding: 12px 16px;
    background-color: #0056b3;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.promo-popup-submit-btn:hover {
    background-color: #004494;
}

.promo-popup-footer-text {
    font-size: 12px;
    color: #888;
    margin-top: 16px;
    text-align: center;
}

/* Accessibility: Show focus ring on the card when the hidden radio is focused via keyboard */
.package-card input[type="radio"]:focus-visible + .card-content {
    outline: 3px solid #0056b3;
    outline-offset: 2px;
    border-color: #0056b3;
}

/* Ensure the radio button is accessible to screen readers and keyboard tabbing
   by replacing display: none with visually hidden properties */
.package-card input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}