/* ==================================== */
/* ======== Reset & Base Style ======== */
/* ==================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: #e9ecef; 
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* ==================================== */
/* ======== Container & Layout ======== */
/* ==================================== */
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0px;
}

.header img {
    max-height: 150px;
    margin-bottom: 15px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.header h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    font-weight: 700;
}

.form-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* ==================================== */
/* ======== Form Headings & Rules ======== */
/* ==================================== */
h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center; /* Membuat judul utama di tengah */
}

h2 {
    font-size: 1.6rem;
    color: #34495e;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    font-weight: 600;
}

hr {
    border: 0;
    border-top: 1px solid #dfe6e9;
    margin: 40px 0;
}

/* ==================================== */
/* ======== Form Elements ======== */
/* ==================================== */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 1rem; /* Memastikan ukuran font label konsisten */
}

.required::after {
    content: " *";
    color: #e74c3c;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Row */
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.form-group-alamat {
    flex: 2;
}

.form-group-telepon {
    flex: 1;
}

/* Radio & Checkbox */
.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
}

.radio-group input,
.checkbox-group input {
    margin-right: 8px;
    accent-color: #28a745;
    transform: scale(1.1);
}

/* ==================================== */
/* ======== Button Style ======== */
/* ==================================== */
.btn-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ==================================== */
/* ======== Popup Overlay ======== */
/* ==================================== */
.overlay {
    display: none; /* Dikelola oleh JavaScript */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease-in-out;
}

.popup {
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    max-width: 450px;
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
    animation: popup-fade-in 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

.popup-icon {
    font-size: 4.5rem;
    color: #2ecc71;
    margin-bottom: 20px;
    display: block;
    animation: icon-bounce 1s ease-in-out infinite;
}

.popup h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.popup p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #7f8c8d;
}

/* Animasi untuk pop-up */
@keyframes popup-fade-in {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==================================== */
/* ======== Popup Button Style ======== */
/* ==================================== */
.btn-ok {
    margin-top: 25px; /* Memberi jarak dari teks di atasnya */
    padding: 12px 35px; /* Padding lebih besar agar tombol mudah diklik */
    background-color: #28a745; /* Warna hijau, konsisten dengan tema sukses */
    color: #fff;
    border: none;
    border-radius: 50px; /* Sudut sangat membulat, gaya modern */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3); /* Bayangan lembut */
}

.btn-ok:hover {
    background-color: #218838; /* Warna sedikit lebih gelap saat di-hover */
    transform: translateY(-2px); /* Efek terangkat saat di-hover */
}

.btn-ok:active {
    transform: translateY(0); /* Efek ditekan saat diklik */
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.4);
}

/* Untuk perangkat mobile */
@media (max-width: 768px) {
    .btn-ok {
        padding: 10px 30px;
        font-size: 0.9rem;
    }
}

/* ==================================== */
/* ======== Responsive Style ======== */
/* (Bagian ini sudah ada, tidak ada perubahan signifikan) */
/* ==================================== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 20px;
        box-shadow: none;
    }
    .header h1 {
        font-size: 1.8rem;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.4rem;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-row .form-group {
        margin-bottom: 20px;
        min-width: unset;
    }
    .radio-group label,
    .checkbox-group label {
        font-size: 0.9rem;
    }
    .btn-submit {
        font-size: 1.1rem;
        padding: 12px;
    }
    .popup {
        padding: 30px;
        margin: 20px;
        max-width: 90%;
    }
    .popup-icon {
        font-size: 3.5rem;
    }
    .popup h3 {
        font-size: 1.5rem;
    }
}