/*
 * Mobile App Foundation CSS
 * Designed for max-width 480px, feeling like a premium iOS/Android app.
 */

:root {
    --app-bg: #F8F9FA;
    --app-white: #FFFFFF;
    --saffron-primary: #FF8C00;
    --saffron-gradient: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --border-soft: #E5E7EB;
    --shadow-glass: 0 8px 32px rgba(255, 140, 0, 0.08);
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    --radius-card: 18px;
    --radius-btn: 14px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--app-bg);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* The Mobile Wrapper */
.mobile-wrapper {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--app-white);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* App Header */
.app-header {
    padding: 20px 24px 10px 24px;
    background: var(--app-white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Progress Bar */
.step-indicator {
    font-size: 12px;
    font-weight: 600;
    color: var(--saffron-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.progress-track {
    height: 4px;
    background: var(--border-soft);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.progress-fill {
    height: 100%;
    background: var(--saffron-gradient);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Page Content Area */
.app-content {
    flex: 1;
    padding: 0 24px 100px 24px; /* Bottom padding for sticky nav */
    animation: fadeSlideUp 0.4s ease forwards;
}

/* Typography */
.page-title {
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Forms */
.form-control, .form-select {
    border: 1.5px solid var(--border-soft);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    transition: all 0.2s ease;
    background-color: #FAFAFA;
}

.form-control:focus, .form-select:focus {
    border-color: var(--saffron-primary);
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1);
    background-color: var(--app-white);
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

/* Cards */
.app-card {
    background: var(--app-white);
    border-radius: var(--radius-card);
    padding: 20px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    margin-bottom: 16px;
}

/* Buttons */
.btn-app-primary {
    background: var(--saffron-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-btn);
    padding: 16px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    box-shadow: var(--shadow-glass);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-app-primary:active {
    transform: scale(0.98);
}

.btn-app-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-btn);
    padding: 16px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    transition: all 0.2s;
}

/* Sticky Bottom Bar */
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 24px 24px 24px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    gap: 12px;
    z-index: 1000;
}

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


/* ============================================================
   REGISTRATION ANNOUNCEMENT MARQUEE
   ============================================================ */

.registration-marquee-section {
    padding: 11px 0;

    /* Soft red premium background */
    background: linear-gradient(
        90deg,
        #fff5f4 0%,
        #fffafa 50%,
        #fff5f4 100%
    );

    border-top: 1px solid rgba(198, 40, 40, 0.22);
    border-bottom: 1px solid rgba(198, 40, 40, 0.22);

    overflow: hidden;
    margin-bottom:10px;
}

.registration-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.registration-marquee {
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    align-items: center;

    width: max-content;
    white-space: nowrap;

    animation: registrationMarquee 28s linear infinite;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #7f1d1d;

    font-size: 15px;
    font-weight: 500;

    padding: 6px 25px;
}

.marquee-item i {
    color: #dc2626;
    font-size: 17px;
}

.marquee-item strong {
    color: #b91c1c;
    font-weight: 700;
}

.marquee-item.highlight {
    color: #991b1b;
    font-weight: 600;
}

.marquee-item.highlight i {
    color: #d49a00;
}

.marquee-divider {
    color: #d49a00;
    font-size: 19px;
    font-weight: 700;

    padding: 0 5px;
}


/* ============================================================
   MARQUEE ANIMATION
   ============================================================ */

@keyframes registrationMarquee {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

}


/* ============================================================
   HOVER — PAUSE
   ============================================================ */

.registration-marquee:hover .marquee-content {
    animation-play-state: paused;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {

    .registration-marquee-section {
        padding: 8px 0;
    }

    .marquee-item {
        font-size: 13px;
        padding: 5px 18px;
        gap: 6px;
    }

    .marquee-item i {
        font-size: 15px;
    }

    .marquee-divider {
        font-size: 15px;
        padding: 0 3px;
    }

    .marquee-content {
        animation-duration: 23s;
    }

}