/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Page Management */
.page {
    display: none;
    min-height: 100vh;
    position: relative;
}

.page.active {
    display: block;
}

/* Landing Page Styles */
.property-background {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.content-container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 2rem;
}

.hero-section {
    animation: fadeInUp 1s ease-out;
}

.realtor-intro {
    margin-bottom: 3rem;
}

.realtor-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.realtor-photo:hover {
    transform: scale(1.05);
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.cta-button {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    text-transform: none;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Button Styles */
.continue-btn {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.continue-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.continue-btn:disabled {
    background: #bdc3c7;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Option Cards */
.option-cards {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.option-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e1e8ed;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.option-card:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.option-card.selected {
    border-color: #3498db;
    background: #f8fbff;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.option-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.option-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.option-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Checkbox and Radio Styles */
.checkbox-grid,
.radio-group {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.checkbox-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-item:hover,
.radio-item:hover {
    border-color: #3498db;
    background: #f8fbff;
}

.checkbox-item input,
.radio-item input {
    margin-right: 0.75rem;
    width: auto;
}

/* Slider Styles */
.budget-slider,
.age-slider {
    position: relative;
    margin: 1rem 0;
}

.budget-slider input[type="range"],
.age-slider input[type="range"] {
    width: 100%;
    margin: 0.5rem 0;
    appearance: none;
    height: 6px;
    background: #e1e8ed;
    border-radius: 3px;
    outline: none;
}

.budget-slider input[type="range"]::-webkit-slider-thumb,
.age-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
}

.budget-display,
.age-display {
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
    color: #3498db;
    font-size: 1.1rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e1e8ed;
    border-radius: 3px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Loading and Animation Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
    text-align: center;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e1e8ed;
}

.modal-header h2 {
    margin: 0;
    color: #2c3e50;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.close-modal:hover {
    background: #f1f2f6;
}

.modal-body {
    padding: 1.5rem;
}

/* Signature Styles */
.signature-input {
    font-size: 1.2rem;
    padding: 1rem;
    margin: 1rem 0;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    width: 100%;
}

.cursive-signature {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #2c3e50;
    font-weight: 600;
    display: block;
    margin: 1rem 0;
    min-height: 3rem;
    padding: 0.5rem;
    border-bottom: 2px solid #e1e8ed;
}

.signature-date {
    margin: 1rem 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.sign-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.sign-btn:hover:not(:disabled) {
    background: #229954;
}

.sign-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Mobile Responsiveness for Landing Page */
@media (max-width: 768px) {
    .content-container {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .realtor-photo {
        width: 150px;
        height: 150px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 300px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .realtor-photo {
        width: 100px;
        height: 100px;
    }
    
    .content-container {
        padding: 1rem;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .admin-access {
        bottom: 10px;
        right: 10px;
    }
    
    .admin-link {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* Admin Access Link */
.admin-access {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.admin-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.admin-link:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
}

.notification.info {
    background: #3498db;
    color: white;
}

.notification.success {
    background: #27ae60;
    color: white;
}

.notification.warning {
    background: #f39c12;
    color: white;
}

.notification.error {
    background: #e74c3c;
    color: white;
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
