/* Variables untuk Konsistensi Warna */
:root {
    --primary-gradient: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    --accent-color: #ff9800;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --text-main: #2c3e50;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    margin: 0;
    padding: 10px;
    line-height: 1.6;
}

/* Container Utama ala Aplikasi Mobile */
.container {
    max-width: 500px; /* Ukuran pas untuk layar HP */
    margin: 20px auto;
    background: var(--white);
    padding: 25px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

/* Header Mewah */
header {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

header h1 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.6rem;
    margin: 10px 0 5px;
}

/* Style Fieldset menjadi Card */
fieldset {
    border: none;
    background: #fdfdfd;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

legend {
    font-weight: 600;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Input & Select Modern */
input[type="text"], 
input[type="number"], 
input[type="date"], 
select, 
textarea {
    width: 100%;
    padding: 12px 15px;
    margin-top: 8px;
    border: 1.5px solid #eee;
    border-radius: 12px;
    background: #fafafa;
    transition: all 0.3s;
    font-family: inherit;
}

input:focus, select:focus {
    border-color: #4caf50;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

/* Radio Group ala Mobile Toggle */
.radio-group {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.radio-group label {
    flex: 1;
    background: #f0f0f0;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.2s;
}

.radio-group input[type="radio"] {
    display: none; /* Sembunyikan bulatan radio asli */
}

.radio-group label:has(input:checked) {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
}

/* Tombol Submit Melayang (Floating) */
.btn-submit {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.3);
    transition: transform 0.3s;
}

.btn-submit:active {
    transform: scale(0.95);
}

/* Signature Pad Area */
.sig-container {
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 12px;
    overflow: hidden;
}

/* Responsive Grid */
.grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .grid-form {
        grid-template-columns: 1fr;
    }
}