/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: #2c3e50; /* Flat dark background */
    color: #fff; /* Light text for contrast */
}


.kv-image-container {
    width: 100%;  /* Make sure the container spans the full width of the form */
    margin-bottom: 20px; /* Add some space below the image */
}

.kv-image {
    width: 100%;  /* Make sure the image takes up the full width of the container */
    height: auto;  /* Maintain the aspect ratio */
}

/* Form Styling */
form {
    max-width: 500px;
    margin: 10px auto;
    background: #e2231a;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid #66a6ff;
    box-sizing: border-box; /* Ensure padding does not overflow width */
}

h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

/* Label Styles */
label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

/* Input and Select Styling */
input[type="text"], 
input[type="email"],
input[type="tel"], 
select {
    width: 100%;
    box-sizing: border-box; /* Ensures padding does not affect width */
    padding: 12px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f4f8ff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="tel"]:focus,
select:focus {
    border-color: #66a6ff;
    box-shadow: 0 0 8px rgba(102, 166, 255, 0.5);
    outline: none;
}


/* Button Styles */
button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background: #911f1d;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 166, 255, 0.5);
}

/* Form Shadow Animation */
form:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Placeholder Text Styling */
input::placeholder {
    color: #bebebe;
    font-style: italic;
}

@media (max-width: 768px) {
    .form-container {
        margin: 20px 15px;
        padding: 20px;
    }

    h2 {
        font-size: 20px;
    }

    input[type="text"], 
    input[type="email"], 
    input[type="tel"],
    select,
    .phone-input-wrapper input[type="tel"],
    .jadwal-row select {
        font-size: 14px;
    }

    button {
        font-size: 14px;
    }
}


 /* Tambahan kecil untuk checkbox dan validasi */
        .checkbox-group {
            margin: 20px 0;
        }
        .checkbox-group label {
            display: block;
            margin-bottom: 8px;
            font-size: 12px;
        }
        .error {
            color: red;
            font-size: 10px;
            display: none;
        }

.phone-input-wrapper {
    display: flex;
    margin-bottom: 20px;
    width: 100%;
}

.phone-prefix {
    background-color: #f4f8ff;
    padding: 0 12px;
    height: 45px;
    line-height: 45px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    color: #555;
    display: flex;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}


.phone-input-wrapper input[type="tel"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    background-color: #f4f8ff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.phone-input-wrapper input[type="tel"]:focus {
    border-color: #66a6ff;
    box-shadow: 0 0 8px rgba(102, 166, 255, 0.5);
    outline: none;
}

.text-link {
    color: #007BFF;
    text-decoration: underline;
    cursor: pointer;
}

.text-link:hover {
    text-decoration: none;
}

.form-container {
    max-width: 500px;
    margin: 20px auto;
    background: #e2231a;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid #66a6ff;
    box-sizing: border-box;
}

select option[disabled] {
    color: #aaa;
    background-color: #f5f5f5;
}


.jadwal-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.jadwal-select-wrapper,
.jadwal-session-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.jadwal-select-wrapper select,
.jadwal-session-wrapper select {
    height: 48px; /* Sama tinggi untuk kedua dropdown */
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f4f8ff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.jadwal-note {
    font-size: 12px;
    color: #fff;
    margin: 6px 0 0 0;
    font-style: italic;
}

button.disabled-btn {
    background: #cccccc;
    color: #666;
    cursor: not-allowed;
    pointer-events: none;
}

input[disabled] {
    background-color: #e0e0e0;
    color: #555;
    border: 1px solid #ccc;
    cursor: not-allowed;
}

/* ========================= */
/* Thankyou Page Styling     */
/* ========================= */
.thankyou-wrapper {
    max-width: 500px;
    margin: 40px auto;
    background: #e2231a;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid #66a6ff;
    text-align: center;
}

.thankyou-wrapper h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.thankyou-wrapper p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #fff;
}

.qr-wrapper {
    margin: 20px 0;
}

.qr-img {
    width: 200px;
    height: 200px;
    border: 4px solid #fff;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
}

.btn-wrapper {
    margin-top: 20px;
}

.note-text {
    font-size: 13px;
    margin-top: 15px;
    color: #f9f9f9;
    font-style: italic;
}


