/* ========================================
   MODERN ENHANCED STYLES FOR RENTOPTIX
   ======================================== */

:root {
    --primary-blue: #2563eb;
    --primary-indigo: #4f46e5;
    --primary-green: #10b981;
    --primary-purple: #7c3aed;
    --primary-orange: #f97316;
    --primary-amber: #f59e0b;
    
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0f172a;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #eef2ff 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-indigo) 50%, #7c3aed 100%);
    color: white;
    padding: 5rem 0 8rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-overlay::before,
.hero-overlay::after {
    content: '';
    position: absolute;
    width: 20rem;
    height: 20rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 4s ease-in-out infinite;
}

.hero-overlay::before {
    top: -10rem;
    right: -10rem;
}

.hero-overlay::after {
    bottom: -10rem;
    left: -10rem;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.6s ease-out;
}

.badge-icon {
    width: 1rem;
    height: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.6s ease-out 0.2s backwards;
}

.text-highlight {
    color: #fbbf24;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.75;
    color: #dbeafe;
    max-width: 48rem;
    margin: 0 auto 2rem;
    animation: fadeIn 0.6s ease-out 0.4s backwards;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.6s ease-out 0.6s backwards;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-primary {
    background: white;
    color: var(--primary-blue);
    box-shadow: var(--shadow-xl);
}

.btn-hero-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: var(--shadow-2xl);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: fadeIn 0.6s ease-out 0.8s backwards;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

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

/* ========================================
   DESCRIPTION SECTION
   ======================================== */

.description-section {
    max-width: 56rem;
    margin: 0 auto 3rem;
}

.lead-text {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--gray-700);
}

.realtor-section {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 2px solid #c7d2fe;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    margin-top: 2rem;
}

.realtor-section h2 {
    color: var(--primary-indigo);
    margin-bottom: 1rem;
}

.alert-info-custom {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #60a5fa;
    border-radius: var(--radius-xl);
    padding: 1rem;
}

.alert-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}

.alert-link:hover {
    text-decoration: underline;
}

/* ========================================
   MODE TOGGLE
   ======================================== */

.mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gray-200);
    background: white;
    color: var(--gray-600);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    background: var(--gray-50);
}

.mode-btn.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-indigo) 100%);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.toggle-switch {
    position: relative;
}

.toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    display: block;
    width: 3.5rem;
    height: 2rem;
    background: var(--gray-300);
    border-radius: 9999px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
}

.toggle-label::after {
    content: '';
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-input:checked + .toggle-label {
    background: var(--primary-blue);
}

.toggle-input:checked + .toggle-label::after {
    transform: translateX(1.5rem);
}

/* ========================================
   CARDS
   ======================================== */

.card-enhanced {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.card-enhanced.card-green {
    border-color: #d1fae5;
}

.card-enhanced.card-purple {
    border-color: #e9d5ff;
}

.card-header-enhanced {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon-green {
    background: #d1fae5;
    color: var(--primary-green);
}

.card-icon-purple {
    background: #e9d5ff;
    color: var(--primary-purple);
}

.card-header-enhanced h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-header-enhanced p {
    color: var(--gray-600);
    margin: 0;
}

/* ========================================
   INFO CARD
   ======================================== */

.info-card {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    border: 2px solid #93c5fd;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    margin-bottom: 2rem;
}

.columns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.column-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.column-item-full {
    grid-column: 1 / -1;
}

.column-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary-blue);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

/* ========================================
   FORMS
   ======================================== */

.form-enhanced {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group-enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label-enhanced {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-control-enhanced {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control-enhanced:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control-enhanced.default-value {
    font-style: italic;
    color: var(--gray-600);
}

.form-row-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-row-3 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.form-row-4 {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

/* ========================================
   UPLOAD AREA
   ======================================== */

.upload-area {
    position: relative;
    margin-bottom: 1.5rem;
}

.file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    background: var(--gray-50);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-label:hover {
    border-color: var(--primary-blue);
    background: #eff6ff;
}

.file-label svg {
    color: var(--gray-400);
    margin-bottom: 0.75rem;
}

.file-text {
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.file-subtext {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ========================================
   ADVANCED OPTIONS
   ======================================== */

.advanced-toggle-container {
    border-top: 1px solid var(--gray-200);
    padding-top: 1rem;
    text-align: center;
}

.btn-advanced-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--primary-blue);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-advanced-toggle:hover {
    color: var(--primary-indigo);
}

.chevron-icon {
    transition: transform 0.3s ease;
}

.btn-advanced-toggle.active .chevron-icon {
    transform: rotate(180deg);
}

.advanced-options {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1.125rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit-green {
    background: linear-gradient(135deg, var(--primary-green) 0%, #059669 100%);
}

.btn-submit-green:hover {
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.5);
}

.btn-submit-purple {
    background: linear-gradient(135deg, var(--primary-indigo) 0%, var(--primary-purple) 100%);
}

.btn-submit-purple:hover {
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.5);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-xl);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-download:hover {
    background: #eff6ff;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.form-note {
    display: block;
    text-align: center;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* ========================================
   PRICING SECTION
   ======================================== */

.pricing-section {
    background: linear-gradient(135deg, var(--gray-50) 0%, #eff6ff 100%);
    padding: 4rem 0;
    margin-top: 3rem;
    border-radius: var(--radius-2xl);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-100);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card-featured {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-amber) 100%);
    color: white;
    border: 2px solid var(--primary-orange);
    transform: scale(1.05);
}

.pricing-card-featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fbbf24;
    color: #78350f;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.pricing-icon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.pricing-icon-green {
    background: #d1fae5;
    color: var(--primary-green);
}

.pricing-icon-blue {
    background: #dbeafe;
    color: var(--primary-blue);
}

.pricing-icon-orange {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
}

.price-period {
    color: var(--gray-600);
}

.pricing-card-featured .price-period {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-desc {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.pricing-card-featured .pricing-desc {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--gray-700);
}

.pricing-card-featured .pricing-features li {
    color: white;
}

.pricing-features svg {
    color: var(--primary-green);
    flex-shrink: 0;
}

.pricing-card-featured .pricing-features svg {
    color: #fbbf24;
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-btn-green {
    background: var(--primary-green);
    color: white;
}

.pricing-btn-green:hover {
    background: #059669;
}

.pricing-btn-blue {
    background: var(--primary-blue);
    color: white;
}

.pricing-btn-blue:hover {
    background: #1d4ed8;
}

.pricing-btn-orange {
    background: white;
    color: var(--primary-orange);
}

.pricing-btn-orange:hover {
    background: var(--gray-50);
}

.pricing-note {
    display: block;
    text-align: center;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    opacity: 0.8;
}

/* ========================================
   PRICING COMPARISON
   ======================================== */

.pricing-comparison {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 48rem;
    margin: 0 auto;
    border: 2px solid var(--gray-200);
}

.pricing-comparison h4 {
    text-align: center;
    margin-bottom: 1rem;
}

.pricing-comparison > p {
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.comparison-item {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.comparison-item-featured {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid var(--primary-orange);
}

.comparison-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0.5rem 0;
}

.comparison-price-orange {
    color: var(--primary-orange);
}

.comparison-savings {
    color: var(--primary-green);
    font-weight: 600;
}

/* ========================================
   RESULTS SECTION
   ======================================== */

.results-section {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.results-section h2 {
    margin-bottom: 2rem;
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

.table {
    margin-bottom: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-features {
        flex-direction: column;
    }
    
    .mode-toggle {
        flex-direction: column;
    }
    
    .form-row-enhanced,
    .form-row-3,
    .form-row-4 {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card-featured {
        transform: none;
    }
    
    .columns-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray-600);
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }

/* ========================================
   HOVER EFFECTS
   ======================================== */

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl) !important;
}

[id] {
  scroll-margin-top: 100px;
}