@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #006B5B;
    --primary-dark: #004F43;
    --accent: #F4C542;
    --bg-page: #F5F7F8;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --border: #D9E1E7;
    --white: #FFFFFF;
}

body {
    background-color: var(--bg-page);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
}

/* =================================
   HEADER (TOP BAR)
   ================================= */
.top-header {
    background-color: var(--white);
    height: 80px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 50;
}
.header-logo img { width: 45px; height: auto; }
.header-title { font-weight: 700; color: var(--primary); font-size: 1.1rem; margin-bottom: 0; line-height: 1.2; }
.header-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0; }
.btn-kiosk {
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: transparent;
}
.btn-kiosk:hover { background-color: var(--primary); color: var(--white); }

/* =================================
   HERO SECTION
   ================================= */
.hero-section {
    position: relative;
    /* PERBAIKAN: Hapus height: 320px dan ganti dengan padding */
    padding: 60px 0 110px 0; 
    
    background: linear-gradient(90deg, rgba(0, 79, 67, 0.9) 0%, rgba(0, 107, 91, 0.75) 100%), url('https://via.placeholder.com/1920x600/004f43/ffffff?text=Gedung+MAN+1+Yogyakarta') center/cover no-repeat;
    display: flex;
    align-items: center;
    border-bottom: 4px solid var(--accent);
}
.badge-layanan {
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}
.hero-title-1 { color: var(--white); font-weight: 800; font-size: 2.2rem; margin-bottom: 0; letter-spacing: 1px; }
.hero-title-2 { color: var(--accent); font-weight: 800; font-size: 2.2rem; margin-bottom: 15px; letter-spacing: 1px; }
.badge-spkp {
    background-color: var(--white);
    color: var(--text-main);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1rem;
    display: inline-block;
    margin-bottom: 15px;
}
.hero-desc { color: rgba(255,255,255,0.9); font-size: 0.95rem; line-height: 1.6; max-width: 550px; }

/* Info Grid (Kanan Hero) */
.hero-info-grid {
    display: flex;
    gap: 15px; /* Jarak dirapatkan sedikit agar pas */
    justify-content: flex-end;
    flex-wrap: nowrap; /* WAJIB: Memaksa item tetap 1 baris lurus di Desktop */
}
.info-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}
.info-icon {
    width: 45px; height: 45px; border-radius: 50%; border: 1px solid rgba(244, 197, 66, 0.5);
    display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.1rem;
    flex-shrink: 0; /* Mencegah ikon berubah lonjong */
}
.info-text h6 { 
    color: var(--white); font-weight: 700; margin: 0; font-size: 0.95rem; 
    white-space: nowrap; /* Mencegah judul turun ke baris baru */
}
.info-text span { 
    color: rgba(255,255,255,0.7); font-size: 0.8rem; 
    white-space: nowrap; /* Mencegah deskripsi turun ke baris baru */
}
/* =================================
   MAIN FORM CARD
   ================================= */
.overlap-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 10;
}
.survey-card {
    margin-top: -50px;
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    padding: 40px;
    margin-bottom: 40px;
}

/* =================================
   STEPPER
   ================================= */
.stepper-wrapper {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; position: relative;
}
.step-item { display: flex; align-items: center; gap: 15px; z-index: 2; background: var(--white); padding-right: 15px; }
.step-icon {
    width: 40px; height: 40px; border-radius: 50%; background-color: var(--bg-page); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; transition: all 0.3s;
}
.step-text { display: flex; flex-direction: column; }
.step-title { font-weight: 700; color: var(--text-main); font-size: 0.95rem; }
.step-desc { font-size: 0.8rem; color: var(--text-muted); }

/* Active & Completed Step */
.step-item.active .step-icon, .step-item.completed .step-icon { background-color: var(--primary); color: var(--white); }
.step-item.active .step-title, .step-item.completed .step-title { color: var(--primary); }

/* Line Connectors */
.step-divider { flex-grow: 1; height: 2px; background-color: var(--border); margin: 0 15px; border: none; border-top: 2px dashed var(--border); opacity: 0.5; }

/* Progress Bar (Bottom of stepper) */
.progress-section { display: flex; align-items: center; gap: 15px; margin-bottom: 35px; }
.custom-progress { flex-grow: 1; height: 6px; background-color: var(--bg-page); border-radius: 10px; overflow: hidden; }
.custom-progress-bar { height: 100%; background-color: var(--primary); width: 33.33%; transition: width 0.4s ease; }
.progress-text { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }

/* =================================
   FORM STYLES
   ================================= */
.section-heading {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.05rem; font-weight: 800; color: var(--primary-dark);
    margin: 30px 0 20px 0; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.section-heading i { color: var(--primary); font-size: 1.2rem; }

.form-group label { font-weight: 600; font-size: 0.85rem; color: var(--text-main); margin-bottom: 8px; }
.text-danger { color: #DC2626 !important; }

/* Input With Icons */
.input-wrapper { position: relative; }
.input-wrapper i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #9CA3AF; z-index: 5; }
.input-wrapper .form-control { padding-left: 45px; }

.form-control {
    border-radius: 8px; border: 1px solid var(--border); height: 48px; background-color: var(--white);
    color: var(--text-main); font-size: 0.95rem; transition: all 0.2s; box-shadow: none;
}
.form-control::placeholder { color: #9CA3AF; font-size: 0.9rem; }
.form-control:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 107, 91, 0.15); outline: none;
}
.input-wrapper .form-control:focus + i { color: var(--primary); }

textarea.form-control { height: auto !important; min-height: 100px; padding: 15px; }

/* Select2 Fixes */
.select2-container { width: 100% !important; }
.select2-container--bootstrap4 .select2-selection {
    border-radius: 8px !important; border: 1px solid var(--border) !important; height: 48px !important; padding: 7px 10px !important; display: flex; align-items: center;
}
.select2-container--bootstrap4 .select2-selection:focus {
    border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(0, 107, 91, 0.15) !important;
}

/* =================================
   BUTTONS
   ================================= */
.btn-primary-action {
    background-color: var(--primary); color: var(--white); border: none; border-radius: 8px;
    height: 48px; padding: 0 30px; font-weight: 600; font-size: 0.95rem; transition: background-color 0.2s;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-primary-action:hover { background-color: var(--primary-dark); color: var(--white); }

.btn-outline-action {
    background-color: var(--white); color: var(--text-main); border: 1px solid var(--border); border-radius: 8px;
    height: 48px; padding: 0 30px; font-weight: 600; font-size: 0.95rem; transition: background-color 0.2s;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-outline-action:hover { background-color: var(--bg-page); color: var(--text-main); }

/* =================================
   RATING / STARS
   ================================= */
.alert-petunjuk { background-color: #F9FAFB; border: 1px solid var(--border); border-radius: 8px; padding: 18px; margin-bottom: 25px; }
.alert-petunjuk h6 { font-weight: 700; color: var(--text-main); margin-bottom: 5px; font-size: 0.95rem; }
.alert-petunjuk p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0; }

.question-box { border: 1px solid var(--border); border-radius: 8px; padding: 25px; margin-bottom: 20px; background-color: var(--white); }
.q-text { font-size: 1rem; font-weight: 600; color: var(--text-main); margin-bottom: 20px; }

.rating-container { 
    display: flex; 
    flex-direction: column; 
    align-items: center; /* KUNCI UTAMA: Mengubah posisi kotak bintang ke tengah */
    width: 100%;
}
.stars-wrapper { 
    display: flex; 
    gap: 15px; 
    width: 100%; 
    max-width: 400px; 
    justify-content: space-between; /* Menyebar bintang secara merata */
}
.star-btn { 
    font-size: 2.2rem; 
    color: #E5E7EB; 
    cursor: pointer; 
    transition: transform 0.2s, color 0.2s; 
}
.star-btn:hover, .star-btn.active { 
    color: var(--accent); 
    transform: scale(1.1); 
}
.rating-labels { 
    display: flex; 
    justify-content: space-between; 
    width: 100%; 
    max-width: 400px; 
    margin-top: 10px; 
}
.rating-labels span { 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    text-align: center; 
    line-height: 1.4; 
}
.d-none-radio { display: none; }

/* =================================
   FOOTER MINIMALIS
   ================================= */
.survey-footer-modern {
    background-color: var(--white);
    border-top: 3px solid var(--accent);
    padding: 20px 0; /* Padding sangat kecil agar pipih */
    margin-top: 30px; 
    width: 100%;
}
.footer-content { 
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; 
}
.footer-left-items {
    gap: 15px; /* Jarak antar ikon informasi dirapatkan */
}
.footer-item { 
    display: flex; align-items: center; gap: 8px; color: var(--text-main); 
    font-size: 0.75rem; /* Ukuran teks diperkecil */
    line-height: 1.2;
}
.footer-icon {
    width: 26px; height: 26px; 
    border-radius: 50%; background-color: var(--bg-page); color: var(--primary);
    display: flex; align-items: center; justify-content: center; 
    font-size: 0.75rem; 
}
.footer-copyright { 
    font-size: 0.7rem; 
    color: var(--text-muted); text-align: right; line-height: 1.3; 
}
/* =================================
   RESPONSIVE LAYOUT
   ================================= */
@media (max-width: 1024px) {
    .hero-info-grid { flex-direction: column; gap: 15px; align-items: flex-start; margin-top: 30px; }
    .survey-card { padding: 30px; margin-top: -30px; }
}

@media (max-width: 768px) {
    .top-header { height: auto; padding: 15px 0; }
    .header-content-mob { flex-direction: column; gap: 15px; text-align: center; }
    
    .hero-section { height: auto; padding: 40px 0 60px 0; }
    .hero-title-1, .hero-title-2 { font-size: 1.8rem; }
    
    .stepper-wrapper { flex-direction: column; align-items: flex-start; gap: 10px; }
    .step-divider { display: none; }
    .progress-section { flex-direction: column; align-items: stretch; gap: 8px; }
    .progress-text { text-align: right; }
    
    /* Form menjadi 1 kolom di mobile */
    .col-md-6, .col-md-4 { flex: 0 0 100%; max-width: 100%; }
    
    .btn-primary-action, .btn-outline-action { width: 100%; justify-content: center; }
    .survey-actions { flex-direction: column; gap: 15px; }
    
    .footer-content { flex-direction: column; align-items: flex-start; }
    .footer-copyright { text-align: left; width: 100%; margin-top: 10px; }
}