/**
 * Jakarta Islamic School
 * Auto-separated stylesheet for: public/students/pengajuansurat.php
 */

:root {
            --jisc-purple: #6f2cf3;
            --jisc-purple-dark: #501bd1;
            --jisc-gold: #ffb703;
            --jisc-dark: #1e1b4b;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
            min-height: 100vh;
            overflow-x: auto;
            overflow-y: auto;
            display: block;
            padding: 30px 15px;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        input, select, textarea, .allow-select {
            -webkit-user-select: text;
            -moz-user-select: text;
            -ms-user-select: text;
            user-select: text;
        }

        .main-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: calc(100vh - 60px);
            width: 100%;
        }

        .portal-card {
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.8);
            border-radius: 2rem;
            box-shadow: 0 25px 50px -12px rgba(111, 44, 243, 0.15);
            overflow: hidden;
            width: 100%;
            max-width: 950px;
            animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .portal-header {
            background: linear-gradient(135deg, var(--jisc-purple), var(--jisc-purple-dark));
            color: white;
            padding: 2.5rem 2rem;
            text-align: center;
            position: relative;
        }

        .portal-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 6px;
            background: linear-gradient(90deg, var(--jisc-gold), #fb8500);
        }

        .portal-logo {
            width: 75px;
            height: auto;
            margin-bottom: 0.75rem;
            filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2));
        }

        .form-label {
            font-weight: 600;
            color: var(--jisc-dark);
            font-size: 0.9rem;
        }

        .form-control, .form-select {
            border-radius: 0.75rem;
            padding: 0.75rem 1rem;
            border: 1px solid #cbd5e1;
            font-size: 0.95rem;
        }

        .form-control:focus, .form-select:focus {
            border-color: var(--jisc-purple);
            box-shadow: 0 0 0 0.25rem rgba(111, 44, 243, 0.15);
        }

        .queue-badge {
            background: #f3e8ff;
            color: var(--jisc-purple);
            border: 2px dashed var(--jisc-purple);
            font-weight: 700;
            letter-spacing: 1px;
            text-align: center;
        }

        .suggestions-dropdown {
            position: absolute;
            z-index: 1000;
            background: white;
            border: 1px solid #cbd5e1;
            border-radius: 0.75rem;
            width: 100%;
            max-height: 200px;
            overflow-y: auto;
            box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
            display: none;
        }

        .suggestion-item {
            padding: 10px 15px;
            cursor: pointer;
            border-bottom: 1px solid #f1f5f9;
            font-size: 0.9rem;
        }

        .suggestion-item:hover {
            background: #f8fafc;
            color: var(--jisc-purple);
        }

        .btn-submit {
            background: linear-gradient(135deg, var(--jisc-purple), var(--jisc-purple-dark));
            color: white;
            border: none;
            padding: 0.85rem 2rem;
            border-radius: 1rem;
            font-weight: 600;
            transition: all 0.3s ease;
            width: 100%;
        }

        .btn-submit:hover {
            opacity: 0.95;
            transform: translateY(-2px);
            box-shadow: 0 10px 20px -5px rgba(111, 44, 243, 0.3);
            color: white;
        }

        .btn-custom-back {
            background: #f1f5f9;
            color: #475569;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 1rem;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-custom-back:hover {
            background: #e2e8f0;
            color: #1e293b;
            transform: translateX(-3px);
        }

        /* Styling Progress Timeline / Garis Bilangan Status Surat dengan dukungan Scroll Horizontal Mobile */
        .tracking-container {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 1.25rem;
            padding: 1.5rem;
            margin-bottom: 2rem;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .stepper {
            display: flex;
            justify-content: space-between;
            position: relative;
            margin-top: 1.5rem;
            margin-bottom: 0.5rem;
            min-width: 700px;
        }

        .stepper::before {
            content: '';
            position: absolute;
            top: 20px;
            left: 30px;
            right: 30px;
            height: 4px;
            background: #cbd5e1;
            z-index: 1;
        }

        .step-item {
            position: relative;
            z-index: 2;
            text-align: center;
            flex: 1;
        }

        .step-counter {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: #e2e8f0;
            color: #64748b;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            margin: 0 auto 10px auto;
            border: 3px solid #fff;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }

        .step-name {
            font-size: 0.75rem;
            font-weight: 600;
            color: #64748b;
            display: block;
        }

        .step-date {
            font-size: 0.65rem;
            color: #94a3b8;
            display: block;
            margin-top: 4px;
            font-weight: 500;
        }

        /* Status Warna Garis Bilangan / Timeline */
        .step-item.completed .step-counter {
            background: #10b981;
            color: white;
        }
        .step-item.completed .step-name {
            color: #059669;
        }
        .step-item.completed .step-date {
            color: #047857;
        }

        .step-item.active-yellow .step-counter {
            background: #ffb703;
            color: #1e1b4b;
            box-shadow: 0 0 0 4px rgba(255, 183, 3, 0.2);
            animation: pulse-yellow 2s infinite;
        }
        .step-item.active-yellow .step-name {
            color: #d97706;
            font-weight: 700;
        }
        .step-item.active-yellow .step-date {
            color: #b45309;
            font-weight: 600;
        }

        .step-item.active-blue .step-counter {
            background: #3b82f6;
            color: white;
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
            animation: pulse-blue 2s infinite;
        }
        .step-item.active-blue .step-name {
            color: #2563eb;
            font-weight: 700;
        }
        .step-item.active-blue .step-date {
            color: #1d4ed8;
            font-weight: 600;
        }

        @keyframes pulse-yellow {
            0% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0.4); }
            70% { box-shadow: 0 0 0 10px rgba(255, 183, 3, 0); }
            100% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0); }
        }

        @keyframes pulse-blue {
            0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
            70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
            100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
        }