/* ==========================================================================
   PPID Disdikbud Prov. Kaltim - Pengajuan Keberatan Informasi Publik
   Modern UI/UX Stylesheet
   ========================================================================== */

/* --------------------------------------------------
   1. Root Variables & Reset
   -------------------------------------------------- */
:root {
    --kb-primary: #2563eb;
    --kb-primary-hover: #1d4ed8;
    --kb-primary-light: #eff6ff;
    --kb-primary-border: #bfdbfe;
    --kb-secondary: #0284c7;
    --kb-secondary-hover: #0369a1;
    --kb-dark: #0f172a;
    --kb-text: #334155;
    --kb-muted: #64748b;
    --kb-border: #e2e8f0;
    --kb-border-input: #cbd5e1;
    --kb-bg: #f8fafc;
    --kb-card-bg: #ffffff;
    --kb-success: #10b981;
    --kb-danger: #ef4444;
    --kb-radius-lg: 20px;
    --kb-radius-md: 12px;
    --kb-radius-sm: 8px;
    --kb-shadow-card: 0 20px 45px -15px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(15, 23, 42, 0.03);
    --kb-shadow-hover: 0 12px 28px -6px rgba(37, 99, 235, 0.15);
}

/* --------------------------------------------------
   2. Page Container & Hero Header
   -------------------------------------------------- */
.keberatan-page-wrapper {
    padding-top: 40px !important;
    padding-bottom: 70px;
    min-height: 85vh;
    background-color: var(--kb-bg);
    background-image: 
        radial-gradient(at 10% 10%, rgba(37, 99, 235, 0.04) 0px, transparent 50%),
        radial-gradient(at 90% 20%, rgba(2, 132, 199, 0.05) 0px, transparent 50%);
    font-family: inherit;
}

.keberatan-hero {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 24px auto;
    padding: 0 16px;
}

.keberatan-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 9999px;
    color: var(--kb-primary);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    transition: all 0.25s ease;
}

.keberatan-badge i {
    font-size: 12px;
}

.keberatan-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--kb-dark);
    letter-spacing: -0.5px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.keberatan-hero-desc {
    font-size: 14px;
    color: var(--kb-muted);
    line-height: 1.55;
    margin: 0 auto;
}

/* --------------------------------------------------
   3. Main Modern Card
   -------------------------------------------------- */
.card-modern {
    background: var(--kb-card-bg);
    border-radius: var(--kb-radius-lg);
    border: 1px solid var(--kb-border);
    box-shadow: var(--kb-shadow-card);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    transition: box-shadow 0.3s ease;
}

.card-modern-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 22px 32px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--kb-border);
}

.card-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.modern-header-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--kb-dark);
    letter-spacing: -0.3px;
    margin: 0 0 2px 0;
}

.modern-header-subtitle {
    font-size: 13px;
    color: var(--kb-muted);
    margin: 0;
}

.btn-modern-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--kb-radius-md);
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1.5px solid var(--kb-border-input);
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-modern-back:hover {
    background: #f1f5f9;
    color: var(--kb-dark);
    border-color: #94a3b8;
    transform: translateX(-3px);
}

.card-modern-body {
    padding: 32px;
}

@media (max-width: 768px) {
    .card-modern-header {
        padding: 18px 20px;
    }
    .card-modern-body {
        padding: 20px;
    }
    .keberatan-hero-title {
        font-size: 24px;
    }
}

/* --------------------------------------------------
   4. Form Step Sections & Headings
   -------------------------------------------------- */
.form-step-section {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px dashed var(--kb-border);
}

.form-step-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 10px;
}

.step-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--kb-primary-light);
    color: var(--kb-primary);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--kb-primary-border);
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--kb-dark);
    margin: 0;
}

.step-desc {
    font-size: 13px;
    color: var(--kb-muted);
    margin: 2px 0 0 0;
}

/* --------------------------------------------------
   5. Form Controls & Inputs
   -------------------------------------------------- */
.form-group-modern {
    margin-bottom: 18px;
}

.form-label-modern {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.form-label-modern .required-star {
    color: var(--kb-danger);
    margin-left: 3px;
}

.form-control-modern {
    width: 100%;
    border-radius: var(--kb-radius-md);
    padding: 12px 16px;
    border: 1.5px solid var(--kb-border-input);
    font-size: 14px;
    color: var(--kb-dark);
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control-modern::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.form-control-modern:focus {
    border-color: var(--kb-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    outline: none;
    background: #ffffff;
}

textarea.form-control-modern {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Input with Icon Wrapper */
.input-with-icon {
    position: relative;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
}

.input-with-icon .form-control-modern {
    padding-left: 44px;
}

/* Compatibility with standard classes */
.form-control {
    border-radius: 10px;
    padding: 11px 16px;
    border: 1.5px solid #cbd5e1;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* --------------------------------------------------
   6. Check Data Permohonan Button & Alert Status
   -------------------------------------------------- */
.action-check-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
    margin-bottom: 12px;
}

.btn-check-data {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: none;
    border-radius: var(--kb-radius-md);
    padding: 11px 22px;
    font-weight: 600;
    font-size: 13.5px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-check-data:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
    color: #ffffff;
}

.btn-check-data:active {
    transform: translateY(0);
}

.status-alert-box {
    border-radius: var(--kb-radius-md);
    padding: 14px 18px;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
    margin-top: 14px;
    transition: all 0.3s ease;
}

.status-alert-box.text-success {
    background-color: #ecfdf5 !important;
    border: 1px solid #a7f3d0;
    color: #065f46 !important;
}

.status-alert-box.text-danger {
    background-color: #fef2f2 !important;
    border: 1px solid #fecaca;
    color: #991b1b !important;
}

/* --------------------------------------------------
   7. Alasan Keberatan Interactive Cards (UX Boost!)
   -------------------------------------------------- */
.alasan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .alasan-grid {
        grid-template-columns: 1fr;
    }
}

.alasan-card-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1.5px solid var(--kb-border);
    border-radius: var(--kb-radius-md);
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    margin: 0;
}

.alasan-card-item:hover {
    border-color: #93c5fd;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.alasan-card-item:has(input:checked),
.alasan-card-item.is-checked {
    border-color: var(--kb-primary);
    background: var(--kb-primary-light);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.09);
}

.alasan-checkbox {
    width: 19px;
    height: 19px;
    min-width: 19px;
    margin-top: 2px;
    margin-right: 12px;
    accent-color: var(--kb-primary);
    cursor: pointer;
}

.alasan-text-content {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--kb-text);
    font-weight: 500;
}

.alasan-card-item:has(input:checked) .alasan-text-content,
.alasan-card-item.is-checked .alasan-text-content {
    color: #1e3a8a;
    font-weight: 600;
}

/* --------------------------------------------------
   8. Modern File Upload Dropzone
   -------------------------------------------------- */
.custom-file-upload {
    border: 2px dashed var(--kb-border-input);
    border-radius: var(--kb-radius-md);
    padding: 22px 20px;
    text-align: center;
    background: #f8fafc;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.custom-file-upload:hover {
    border-color: var(--kb-primary);
    background: #eff6ff;
}

.upload-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0284c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 10px;
}

.upload-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--kb-dark);
    margin-bottom: 4px;
}

.upload-hint {
    font-size: 12px;
    color: var(--kb-muted);
    margin: 0;
}

.file-input-hidden {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-selected-name {
    display: none;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--kb-primary);
}

/* --------------------------------------------------
   9. Disclaimer Box & Math Anti-Spam Captcha
   -------------------------------------------------- */
.legal-disclaimer-box {
    background: #f8fafc;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.disclaimer-checkbox {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: var(--kb-primary);
    cursor: pointer;
}

.disclaimer-label {
    font-size: 13.5px;
    line-height: 1.55;
    color: #334155;
    cursor: pointer;
    margin: 0;
}

.captcha-card-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    border-radius: var(--kb-radius-md);
    padding: 18px 22px;
    margin-bottom: 24px;
}

.captcha-header-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.captcha-badge-equation {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-weight: 700;
    color: var(--kb-dark);
    font-size: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

/* --------------------------------------------------
   10. Submit Button & Form Footer
   -------------------------------------------------- */
.btn-submit-keberatan {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: var(--kb-radius-md);
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.28);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    width: 100%;
}

.btn-submit-keberatan:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.38);
    color: #ffffff;
}

.btn-submit-keberatan:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-submit-keberatan:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none !important;
}

.form-footer-note {
    font-size: 12.5px;
    color: var(--kb-muted);
    margin-top: 10px;
    text-align: center;
}

/* Compatibility classes requested by user */
.btn-modern-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 600;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
}

.btn-modern-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-modern-light {
    background: #f1f5f9;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease;
}

.btn-modern-light:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* --------------------------------------------------
   11. Success Notification Card
   -------------------------------------------------- */
.success-icon-wrapper {
    width: 86px;
    height: 86px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #ecfdf5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.35);
}

.success-icon-wrapper i {
    font-size: 46px;
    color: #10b981;
}

.ticket-display-box {
    max-width: 540px;
    margin: 0 auto 24px;
    padding: 20px 24px;
    border-radius: 14px;
    border: 1.5px solid #86efac;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.08);
    text-align: center;
}

.ticket-number-val {
    font-size: 28px;
    font-weight: 800;
    color: #059669;
    letter-spacing: 1.5px;
    margin: 0;
}

.btn-copy-ticket {
    border-radius: 9999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid #10b981;
    color: #059669;
    background: #ffffff;
    transition: all 0.2s ease;
}

.btn-copy-ticket:hover {
    background: #10b981;
    color: #ffffff;
}

.success-meta-card {
    background: #f8fafc;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius-md);
    padding: 20px 24px;
    max-width: 720px;
    margin: 0 auto 28px auto;
}

.meta-item-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--kb-muted);
    font-weight: 700;
    margin-bottom: 4px;
}

.meta-item-value {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--kb-dark);
}