/* ============================================
   CSS RESET & VARIABLES
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #E53935;
    --primary-red-dark: #C62828;
    --primary-red-light: #EF5350;
    --primary-blue: #1E3A8A;
    --primary-blue-light: #3B82F6;
    --primary-blue-dark: #1E40AF;
    --primary-green: #27ae60;
    --primary-orange: #e67e22;
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dark: #1a1a2e;
    --card-bg: rgba(255, 255, 255, 0.06);
    --card-bg-solid: rgba(30, 40, 70, 0.95);
    --glass-bg: rgba(245, 235, 220, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --input-bg: rgba(255, 255, 255, 0.08);
    --input-border: rgba(255, 255, 255, 0.15);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow-red: 0 0 30px rgba(229, 57, 53, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --gradient-dark: linear-gradient(135deg, #0f1629 0%, #1a2744 50%, #0d1321 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--gradient-dark);
    min-height: 100vh;
}

/* ============================================
   PAGE WRAPPER & BACKGROUND
   ============================================ */
.page-wrapper {
    min-height: 100vh;
    background: var(--gradient-dark);
    position: relative;
}

/* Particle/Star Effect */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
    background: rgba(15, 22, 41, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-white);
    font-size: 1.4rem;
    font-weight: 700;
}

.nav-logo em {
    color: var(--primary-red);
    font-style: normal;
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-red);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.nav-cta:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.5);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding: 120px 48px 60px;
    position: relative;
    z-index: 1;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* ============================================
   FORM SECTION
   ============================================ */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-header {
    margin-bottom: 8px;
}

.hero-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.step-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(39, 174, 96, 0.15);
    color: var(--primary-green);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 500;
}

.step-label i {
    font-size: 1rem;
}

/* Form Card */
.form-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 36px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
}

.form-section-block {
    margin-bottom: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--glass-border);
}

.form-section-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 24px;
}

.section-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label,
.preference-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.required {
    color: var(--primary-red);
}

/* Input Styles */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-red);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

select option {
    background: #1a2744;
    color: white;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Budget Slider */
.budget-slider-container {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 12px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-red);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(229, 57, 53, 0.4);
    transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.slider-value {
    color: var(--primary-red);
    font-weight: 600;
}

/* Lifestyle Grid */
.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.preference-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Radio Options */
.radio-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-red);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--input-border);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-red);
    background: var(--primary-red);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-text {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-text i {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.radio-option input[type="radio"]:checked ~ .radio-text {
    color: var(--text-white);
}

.radio-option input[type="radio"]:checked ~ .radio-text i {
    color: var(--primary-red);
}

/* Disclaimer */
.disclaimer {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.disclaimer i {
    color: var(--primary-green);
}

.disclaimer a {
    color: var(--primary-blue-light);
    text-decoration: none;
}

.disclaimer a:hover {
    text-decoration: underline;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.4);
}

.btn-primary:hover {
    background: var(--primary-red-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(229, 57, 53, 0.5);
}

.btn-blue {
    background: var(--primary-blue-light);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-blue:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.btn-back {
    background: var(--primary-blue-light);
    color: white;
    align-self: flex-start;
    padding: 12px 24px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-back:hover {
    background: var(--primary-blue-dark);
    transform: translateX(-5px);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 0.85rem;
}

/* ============================================
   VISUAL SECTION (Right Side)
   ============================================ */
.visual-section {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Contact Card */
.contact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 28px;
    backdrop-filter: blur(20px);
}

.contact-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card h3 i {
    color: var(--primary-red);
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.phone-frame {
    width: 240px;
    height: 480px;
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
}

.phone-notch {
    width: 80px;
    height: 24px;
    background: #1a1a2e;
    border-radius: 0 0 16px 16px;
    margin: 0 auto 8px;
}

.phone-screen {
    width: 100%;
    height: calc(100% - 32px);
    background: linear-gradient(180deg, #0f1629, #1a2744);
    border-radius: 28px;
    overflow: hidden;
    padding: 16px;
}

.phone-header {
    margin-bottom: 16px;
}

.phone-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-white);
}

.phone-logo i {
    color: var(--primary-red);
}

.phone-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-preview-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px;
    border-radius: var(--radius-md);
}

.preview-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue-light), var(--primary-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.preview-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
}

.preview-info p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.preview-badge {
    margin-left: auto;
    background: rgba(39, 174, 96, 0.2);
    color: var(--primary-green);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.preview-details {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.preview-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.preview-tag i {
    color: var(--primary-green);
    font-size: 0.6rem;
}

.preview-budget {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: 600;
    padding: 8px 12px;
    background: rgba(229, 57, 53, 0.1);
    border-radius: var(--radius-sm);
}

.preview-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.preview-buttons .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.75rem;
}

/* Illustration Background */
.illustration-bg {
    position: absolute;
    bottom: -20px;
    right: -60px;
    width: 200px;
    height: 200px;
    z-index: 1;
    opacity: 0.6;
}

.desk-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

.student-figure {
    position: absolute;
    bottom: 60px;
    right: 40px;
}

.student-head {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #f4c4a8, #e8b090);
    border-radius: 50%;
    margin-bottom: 5px;
}

.student-body {
    width: 40px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue-light), var(--primary-blue));
    border-radius: 10px 10px 5px 5px;
}

.desk {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: 40px;
    background: linear-gradient(135deg, #8B5A2B, #6B4423);
    border-radius: 5px;
}

.lamp {
    position: absolute;
    bottom: 60px;
    right: 100px;
    width: 20px;
    height: 60px;
    background: #333;
    border-radius: 3px;
}

.lamp-light {
    position: absolute;
    top: -15px;
    left: -10px;
    width: 40px;
    height: 30px;
    background: linear-gradient(180deg, #ffeaa7, #fdcb6e);
    border-radius: 50% 50% 0 0;
    opacity: 0.8;
    box-shadow: 0 0 30px rgba(253, 203, 110, 0.5);
}

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

/* Tablet */
@media (max-width: 1200px) {
    .content-container {
        grid-template-columns: 1fr 320px;
        gap: 32px;
    }

    .lifestyle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .navbar {
        padding: 16px 32px;
    }

    .main-content {
        padding: 120px 32px 60px;
    }

    .content-container {
        grid-template-columns: 1fr;
    }

    .visual-section {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-card {
        flex: 1;
        min-width: 280px;
        max-width: 400px;
    }

    .phone-mockup {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 22, 41, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .main-content {
        padding: 100px 20px 40px;
    }

    .hero-header h1 {
        font-size: 1.8rem;
    }

    .hero-header p {
        font-size: 1rem;
    }

    .form-card {
        padding: 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .lifestyle-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        max-width: 100%;
    }

    .btn-back {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-header h1 {
        font-size: 1.5rem;
    }

    .form-card {
        padding: 20px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .radio-option {
        padding: 10px 12px;
    }

    .radio-text {
        font-size: 0.85rem;
    }
}
