/* --- Pengaturan Dasar dan Reset --- */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    margin: 0;
}

.container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 650px;
    width: 100%;
}

/* --- Header dan Judul --- */
header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    color: #cc0000; /* Warna merah khas */
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 5px;
}

p {
    font-size: 14px;
    color: #555;
    margin-top: 0;
}

/* --- Bagian Catatan (Notes) --- */
.notes {
    background-color: #ffeaea;
    border: 1px solid #ff9999;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 5px;
}

.notes ol {
    padding-left: 20px;
    font-size: 12px;
    line-height: 1.6;
    color: #333;
}

.notes li {
    margin-bottom: 8px;
}

/* --- Judul Bagian Formulir --- */
.section-title h2 {
    font-size: 18px;
    color: #cc0000;
    border-bottom: 2px solid #cc0000;
    padding-bottom: 5px;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* --- Gaya Input dan Label Umum --- */
label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-top: 15px;
    margin-bottom: 5px;
}

input[type="text"],
input[type="date"],
input[type="tel"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 15px;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
select:focus {
    border-color: #cc0000;
    outline: none;
    box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.2);
}

.small-text {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
    margin-bottom: 15px;
}

/* --- Input Khusus (Nama & HP) --- */
/* Grup Nama (Dua Kolom) */
.name-group {
    display: flex;
    gap: 10px;
}

.name-group input {
    flex: 1;
}

/* Grup HP/WA */
.phone-group {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.phone-group .country-code {
    padding: 10px;
    background-color: #f5f5f5;
    font-size: 15px;
    font-weight: bold;
    color: #555;
    border-right: 1px solid #ccc;
}

.phone-group input {
    border: none;
    flex: 1;
    width: auto;
}

/* --- Input File Custom (Pasphoto & Bukti Transfer) --- */
.file-upload-group {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.custom-file-input {
    display: none;
}

.custom-file-label {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    font-size: 15px;
    color: #555;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mensimulasikan Ikon Upload (Perlu Font Awesome/SVG untuk ikon asli) */
.upload-icon {
    display: block;
    width: 45px;
    height: 45px;
    background-color: #f0f0f0;
    border-left: 1px solid #ccc;
    text-align: center;
    line-height: 45px;
    font-size: 18px;
    color: #cc0000;
}

/* --- Metode Bayar (Radio Button) --- */
.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    padding: 8px 25px;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
    transition: all 0.2s;
}

.radio-group input[type="radio"]:checked + label {
    border-color: #cc0000;
    background-color: #fef0f0;
    color: #cc0000;
    box-shadow: 0 0 5px rgba(204, 0, 0, 0.3);
}

/* --- Syarat dan Ketentuan --- */
.terms-list {
    list-style-type: none;
    padding-left: 0;
    font-size: 13px;
    color: #555;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 5px;
    background-color: #fcfcfc;
}

.terms-list li {
    margin-bottom: 5px;
}

/* Checkbox Setuju */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-top: 15px;
    margin-bottom: 20px;
}

.checkbox-group label {
    display: inline;
    font-size: 14px;
    font-weight: normal;
    margin: 0 0 0 8px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

/* --- Captcha --- */
.captcha-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.captcha-box {
    background-color: #e0e0e0;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-decoration: line-through;
    font-style: italic;
    letter-spacing: 2px;
}

.refresh-captcha {
    /* Tombol refresh */
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    font-size: 18px;
    color: #007bff; /* Warna biru untuk ikon refresh */
    /* Anda bisa mengganti ini dengan ikon sungguhan */
}

.captcha-group input[type="text"] {
    flex-grow: 1;
}

/* --- Tombol Submit --- */
.submit-button {
    width: 100%;
    padding: 15px;
    background-color: #cc0000;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 30px;
    transition: background-color 0.3s, transform 0.1s;
}

.submit-button:hover {
    background-color: #a80000;
}

.submit-button:active {
    transform: scale(0.99);
}

/* --- Styling Error Laravel (untuk is-invalid class) --- */
.is-invalid {
    border-color: red !important;
}

.error {
    color: red;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 15px;
}