/* ===== VARIABLES ===== */
:root {
    --primary-dark: #1e3a6f;      /* Biru navy */
    --primary-light: #2a4a8a;      /* Biru lebih terang */
    --secondary: #dc3545;          /* Merah */
    --secondary-hover: #c82333;     /* Merah hover */
    --text-dark: #2d3436;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
    --gradient-secondary: linear-gradient(135deg, #dc3545, #c82333);
}

/* ===== GLOBAL STYLES ===== */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

/* ===== SECTION ===== */
section {
    width: 100%;
}

/* Badge Custom */
.badge-custom {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--secondary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 20px;
}

.text-primary-dark {
    color: var(--primary-dark) !important;
}

/* ===== CARD ===== */
.card-custom {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.card-custom:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-body {
    padding: 2.5rem;
}

/* ===== FORM ===== */
.form-floating > .form-control {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    background: var(--white);
    height: 60px;
}

.form-floating > .form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-floating > label {
    color: var(--text-muted);
    font-size: 14px;
    padding-left: 16px;
}

/* Radio button kategori */
.btn-check:checked + .btn-outline-custom {
    background: var(--gradient-secondary);
    border-color: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.2);
}

.btn-outline-custom {
    border: 1px solid #e9ecef;
    background: var(--white);
    color: var(--text-dark);
    padding: 15px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-outline-custom:hover {
    border-color: var(--secondary);
    background: rgba(220, 53, 69, 0.02);
    transform: translateY(-2px);
}

/* Textarea */
textarea.form-control {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    background: var(--white);
    resize: vertical;
}

textarea.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Pernyataan Box */
.pernyataan-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--secondary);
}

.form-check-input:checked {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.form-check-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Tombol submit */
.btn-submit {
    background: var(--gradient-secondary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    width: 100%;
    cursor: pointer;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3);
    background: linear-gradient(135deg, #c82333, #b21f2d);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Alert */
.alert-custom {
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 20px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-custom.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-custom.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--secondary);
}

.alert-custom.hidden {
    display: none;
}

/* Utility */
.tracking-wider {
    letter-spacing: 0.05em;
}

/* ===== TOMBOL BACK TO HOME ===== */
.btn-back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-back-home:hover {
    background: rgba(220, 53, 69, 0.05);
    color: var(--secondary);
    border-color: rgba(220, 53, 69, 0.2);
    transform: translateY(-2px);
}

.btn-back-home i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-back-home:hover i {
    transform: translateX(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .btn-outline-custom {
        min-height: 60px;
        font-size: 12px;
        padding: 10px 5px;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .badge-custom {
        font-size: 12px;
        padding: 6px 15px;
    }
    
    h2.display-6 {
        font-size: 1.8rem;
    }
}