/* ============================================
   MNH RCH — PREMIUM DESIGN SYSTEM
   Colors: Rich Ivory, Deep Blue, Cream
   ============================================ */

:root {
    --ivory: #FFFFF0;
    --ivory-deep: #F5F0E1;
    --cream: #FDF5E6;
    --cream-soft: #FAF3E0;
    --blue-primary: #1e3a8a;
    --blue-accent: #2563eb;
    --blue-light: #dbeafe;
    --blue-soft: #eff6ff;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(30, 58, 138, 0.05);
    --shadow-md: 0 4px 12px rgba(30, 58, 138, 0.08);
    --shadow-lg: 0 12px 32px rgba(30, 58, 138, 0.12);
    --shadow-xl: 0 20px 48px rgba(30, 58, 138, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--ivory);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--cream-soft);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.lang-switcher:hover {
    background: var(--blue-light);
    border-color: var(--blue-accent);
}

.lang-switcher svg {
    width: 18px;
    height: 18px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-mark {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-md);
}

.logo-mark svg {
    width: 24px;
    height: 24px;
}

.logo-text {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.logo-text span {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cream-soft);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-primary);
    margin-bottom: 32px;
}

.badge svg {
    width: 18px;
    height: 18px;
    color: var(--blue-accent);
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 24px;
}

.hero h1 .accent {
    color: var(--blue-accent);
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn svg {
    width: 18px;
    height: 18px;
}

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

.btn-primary:hover {
    background: var(--blue-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--cream-soft);
    border-color: var(--blue-accent);
    color: var(--blue-accent);
}

/* ============================================
   STATS / FEATURES GRID
   ============================================ */
.features {
    padding: 40px 0 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-light);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--blue-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-accent);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--blue-primary);
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   REGISTER CTA SECTION
   ============================================ */
.register-cta {
    padding: 40px 0 100px;
}

.cta-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: var(--shadow-sm);
}

.cta-content {
    flex: 1;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.6;
}

.cta-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--cream-soft);
    border: 3px dashed var(--blue-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-accent);
    flex-shrink: 0;
}

.cta-icon svg {
    width: 56px;
    height: 56px;
}

/* ============================================
   SERVICES PAGE
   ============================================ */
.page-header {
    padding: 60px 0 40px;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--blue-accent);
}

.back-link svg {
    width: 16px;
    height: 16px;
}

.page-header h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.services-section {
    padding: 20px 0 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-primary), var(--blue-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--blue-light);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--blue-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-accent);
    margin-bottom: 20px;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: var(--blue-primary);
    color: white;
    transform: scale(1.05);
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   LEARN MORE PAGE
   ============================================ */
.vision-section {
    padding: 40px 0 80px;
}

.vision-card {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-accent));
    border-radius: var(--radius-xl);
    padding: 56px;
    color: white;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.vision-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.vision-card h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.vision-card p {
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.95;
    max-width: 700px;
    position: relative;
}

.vision-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.detail-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.detail-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--blue-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-card h3 svg {
    width: 20px;
    height: 20px;
}

.detail-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   REGISTER OPTIONS PAGE
   ============================================ */
.options-section {
    padding: 40px 0 100px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.option-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    cursor: pointer;
}

.option-card:hover {
    border-color: var(--blue-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.option-icon {
    width: 72px;
    height: 72px;
    background: var(--blue-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--blue-accent);
    transition: all 0.3s;
}

.option-card:hover .option-icon {
    background: var(--blue-primary);
    color: white;
    transform: scale(1.1);
}

.option-icon svg {
    width: 32px;
    height: 32px;
}

.option-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.option-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.option-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-accent);
}

.option-arrow svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.option-card:hover .option-arrow svg {
    transform: translateX(4px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

.footer strong {
    color: var(--blue-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
    
    .vision-card {
        padding: 32px 24px;
    }
    
    .hero {
        padding: 48px 0 40px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   REGISTRATION FORM STYLES
   ============================================ */

#registration_form .form-group {
    margin-bottom: 20px;
}

#registration_form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

#registration_form label span {
    color: var(--text-light);
    font-weight: 400;
    font-size: 12px;
}

#registration_form input[type="text"],
#registration_form input[type="number"],
#registration_form input[type="tel"],
#registration_form input[type="email"],
#registration_form input[type="date"],
#registration_form select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--text-dark);
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

#registration_form input::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

#registration_form input:focus,
#registration_form select:focus {
    border-color: var(--blue-accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

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

#registration_form select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232563eb' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
}

#registration_form input[type="date"] {
    cursor: pointer;
}

/* Grid Layout for Side-by-Side Fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    #registration_form input[type="text"],
    #registration_form input[type="number"],
    #registration_form input[type="tel"],
    #registration_form input[type="email"],
    #registration_form input[type="date"],
    #registration_form select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Section Headers */
.form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.form-section-header .section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-soft);
    color: var(--blue-accent);
}

.form-section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--blue-primary);
    margin: 0;
}

/* Required Field Indicator */
.required {
    color: var(--danger);
    font-weight: 700;
}

/* Form Validation States */
#registration_form input:invalid:not(:placeholder-shown) {
    border-color: var(--danger);
}

#registration_form input:valid:not(:placeholder-shown) {
    border-color: #16a34a;
}
