/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #F5F5F5; /* Latar belakang abu-abu terang seperti di APL */
    color: #333333; /* Warna teks utama */
    line-height: 1.6;
}

/* Container styling */
.container {
    max-width: 700px; /* Lebar sedikit lebih besar untuk kesan elegan */
    margin: 40px auto;
    background: #FFFFFF; /* Latar belakang putih untuk kontainer */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Shadow ringan */
}

/* Header image styling */
.header-image {
    width: 100%; /* Lebar sama dengan container */
    margin-bottom: 20px;
}

.header-image img {
    width: 100%; /* Gambar mengikuti lebar container */
    height: auto; /* Menjaga rasio aspek gambar */
    display: block;
    border-radius: 8px 8px 0 0; /* Rounded corner di bagian atas */
}

/* Heading styling */
h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 28px;
    color: #A71C20; /* Merah tua untuk judul */
    text-align: center;
    margin-bottom: 30px;
}

/* Form styling */
.apl-form {
    display: flex;
    flex-direction: column;
}

/* Label styling */
label {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #333333;
    margin: 10px 0 5px;
}

/* Input, select, textarea styling */
input[type="text"],
input[type="email"],
select,
textarea,
input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #D3D3D3; /* Border abu-abu */
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #333333;
    background-color: #FFFFFF;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus,
input[type="file"]:focus {
    border-color: #A71C20; /* Merah tua saat fokus */
    outline: none;
}

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

/* Checkbox dan Radio styling */
.radio-label {
    font-weight: 400;
    font-size: 14px;
    margin-right: 20px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

/* CAPTCHA styling */
.captcha-group {
    margin-bottom: 15px;
}

input[name="captcha"] {
    width: 70px;
    display: block; /* Memastikan input berada di baris baru */
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #D3D3D3;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

input[name="captcha"]:focus {
    border-color: #A71C20;
    outline: none;
}

img#captchaImage {
    vertical-align: middle;
}

/* Refresh CAPTCHA button */
#refreshCaptcha {
    margin-left: 10px;
    padding: 8px 15px;
    background-color: #A71C20; /* Merah tua */
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

#refreshCaptcha:hover {
    background-color: #8B171A; /* Merah tua lebih gelap saat hover */
}

/* Button group styling */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Primary and secondary buttons */
.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #A71C20; /* Merah tua */
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #8B171A; /* Merah tua lebih gelap */
}

.btn-secondary {
    background-color: #D3D3D3; /* Abu-abu */
    color: #333333;
}

.btn-secondary:hover {
    background-color: #B0B0B0; /* Abu-abu lebih gelap */
}

/* Error and success messages */
.error {
    color: #A71C20; /* Merah tua untuk pesan error */
    font-size: 14px;
    margin-bottom: 15px;
}

.success {
    color: #28A745; /* Hijau untuk pesan sukses */
    font-size: 14px;
    margin-bottom: 15px;
}

/* Info section styling */
.info-section {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.info-section h3 {
    color: #A71C20;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-section ul {
    list-style-type: disc;
    margin-left: 20px;
}

.info-section li {
    margin-bottom: 8px;
    color: #333;
}

.info-section strong {
    color: #A71C20;
}

/* HR Contact styling */
.hr-contact {
    text-align: center;
    margin-top: 20px;
}

.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 16px;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.4);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        margin: 20px;
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    .apl-form label {
        font-size: 14px;
    }

    .apl-form input,
    .apl-form select,
    .apl-form textarea {
        font-size: 14px;
        padding: 10px;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 14px;
        padding: 10px 20px;
    }

    .info-section {
        padding: 15px;
    }

    .info-section h3 {
        font-size: 16px;
    }

    .btn-whatsapp {
        font-size: 14px;
        padding: 10px 20px;
    }
}