/* Program Selection Box Style */
.program-selection .radio-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.program-selection .package-type-buttons {
    display: flex;
    gap: 15px;
    margin: 10px 0 20px;
}

.program-option {
    position: relative;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.program-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.program-option .program-details {
    display: block;
    padding: 20px 15px;
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 10px;
    transition: none;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.program-option:hover .program-details {
    border-color: #4a6fa5;
    box-shadow: 0 2px 10px rgba(74, 111, 165, 0.1);
}

.program-option input:checked + .program-details {
    border-color: #4a6fa5;
    background-color: #f8faff;
    border-width: 3px;
    box-shadow: 0 2px 10px rgba(74, 111, 165, 0.1);
    position: relative;
}

.program-option input:checked + .program-details:after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #4a6fa5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.program-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: block;
}

/* Package Type Buttons */
.package-type-buttons {
    display: flex;
    gap: 15px;
    margin: 10px 0 20px;
}

.package-type-btn {
    flex: 1;
    padding: 15px;
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.package-type-btn:hover {
    border-color: #4a6fa5;
    background-color: #f8faff;
    color: #4a6fa5;
    box-shadow: 0 2px 10px rgba(74, 111, 165, 0.1);
}

.package-type-btn.active {
    border-color: #4a6fa5;
    background-color: #f8faff;
    color: #4a6fa5;
    box-shadow: 0 2px 10px rgba(74, 111, 165, 0.1);
}

.package-type-btn.active:after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #4a6fa5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Form Registrasi Styles */
.form-registrasi-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.form-registrasi {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 25px 50px;
    box-sizing: border-box;
}

.form-registrasi form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-registrasi {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-header {
    background: #4a6fa5;
    color: white;
    padding: 25px 30px;
    margin-bottom: 20px;
}

.form-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.form-header p {
    margin: 0;
    opacity: 0.9;
}

.form-section {
    width: 100%;
    padding: 0 0 20px;
    margin: 0 0 20px;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: #2c3e50;
    margin: 25px 0 15px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

.form-group {
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px; /* Mengurangi margin negatif */
}

.form-group.half {
    flex: 0 0 calc(50% - 10px); /* Menyesuaikan lebar dengan margin yang lebih kecil */
    margin: 0 5px 15px; /* Mengurangi margin horizontal */
    box-sizing: border-box;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.required {
    color: #e74c3c;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #4a6fa5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
}

.package-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.package-option {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.package-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.package-box {
    padding: 20px 15px;
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 10px;
    transition: none;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.package-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #4a6fa5;
    opacity: 0;
}

.package-option input:checked + .package-box:before {
    opacity: 1;
}

.package-option:hover .package-box {
    border-color: #4a6fa5;
    background-color: #f9f9f9;
}

.package-option input:checked + .package-box {
    border: 3px solid #4a6fa5;
    background-color: #f8faff;
    box-shadow: 0 2px 10px rgba(74, 111, 165, 0.1);
    position: relative;
    padding-right: 40px;
    border-top: none;
}

.package-option input:checked + .package-box:after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #4a6fa5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.package-option input:checked + .package-box:before {
    background: #4a6fa5;
}

.package-option input:checked + .package-box .package-price {
    color: #4a6fa5;
    font-weight: 700;
}

.package-option input:checked + .package-box h4 {
    color: #2c3e50;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .package-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .program-selection .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .package-type-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .package-type-btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .package-options {
        grid-template-columns: 1fr;
    }
    
    /* Make package buttons full width on mobile */
    .package-type-buttons {
        display: flex;
        flex-direction: column;
    }
    
    .package-type-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Adjust form padding for mobile */
    .form-section {
        padding: 0 15px;
    }
    
    /* Perbaikan form row dan kolom di mobile */
    .form-row {
        margin: 0 -5px;
    }
    
    .form-group.half {
        flex: 0 0 100%;
        margin: 0 0 15px 0;
        padding: 0 5px;
    }
	.form-registrasi {
  padding: 25px 10px;
}
}

@media (max-width: 768px) {
    .program-selection .radio-group {
        flex-direction: column;
    }
    
    .program-option {
        width: 100%;
    }
    
    .package-options {
        grid-template-columns: 1fr;
    }
    
    .submit-btn {
        width: 100%;
        padding: 16px;
    }
}

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

.error-message {
  color: #ea0c0c;
  font-size: 12px;
  font-style: italic;
}