/* assets/css/pendaftaran.css */

/* Tombol CTA di Home */
.pendaftaran-cta {
    background: linear-gradient(135deg, #5C6844 0%, #67898C 100%);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.pendaftaran-cta-content h3 {
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
}

.pendaftaran-cta-content p {
    color: rgba(255,255,255,0.95);
    margin-bottom: 10px;
    font-size: 16px;
}

.btn-pendaftaran {
    display: inline-block;
    background: white;
    color: #5C6844;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-pendaftaran:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: #1C150F;
    color: white;
}

/* Halaman Pendaftaran */
.pendaftaran-page {
    background: #D7CEAF;
    padding: 60px 0;
    min-height: 100vh;
}

.pendaftaran-header {
    text-align: center;
    margin-bottom: 40px;
}

.pendaftaran-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: #1C150F;
    margin-bottom: 10px;
}

.pendaftaran-header p {
    color: #555;
    font-size: 16px;
}

.pendaftaran-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.pendaftaran-info {
    margin-bottom: 30px;
}

.alert-info {
    background: #E8F0FE;
    border-left: 4px solid #5C6844;
    padding: 20px;
    border-radius: 12px;
    color: #1C150F;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #F0EDE3;
}

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

.form-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: #5C6844;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #5C6844;
    display: inline-block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1C150F;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E8E4D9;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #5C6844;
    box-shadow: 0 0 0 3px rgba(92,104,68,0.1);
}

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

.form-control-file {
    padding: 10px 0;
}

.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn-submit {
    background: #5C6844;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-submit:hover {
    background: #4a5637;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(92,104,68,0.3);
}

.btn-cancel {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    text-align: center;
}

.btn-cancel:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.pendaftaran-closed {
    text-align: center;
    padding: 60px 20px;
}

.alert-closed {
    background: white;
    border-radius: 24px;
    padding: 50px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.alert-closed h3 {
    font-size: 28px;
    color: #1C150F;
    margin-bottom: 15px;
}

.btn-back {
    display: inline-block;
    background: #5C6844;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 20px;
}
/* Tambahkan di assets/css/pendaftaran.css */

/* Required star */
.required-star {
    color: #e74c3c;
    font-size: 16px;
    margin-left: 4px;
}

.optional-text {
    color: #999;
    font-size: 12px;
    font-weight: normal;
    margin-left: 8px;
}

/* File Upload Wrapper */
.file-upload-wrapper {
    position: relative;
}

.file-upload-input {
    width: 100%;
    padding: 12px;
    border: 2px dashed #E8E4D9;
    border-radius: 12px;
    background: #FAF9F5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-input:hover {
    border-color: #5C6844;
    background: #F5F2E8;
}

.file-upload-input:focus {
    outline: none;
    border-color: #5C6844;
    background: #fff;
}

.file-upload-info {
    margin-top: 8px;
}

/* Error message */
.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

/* Tambahkan di assets/css/pendaftaran.css */

/* Alert Messages */
.alert-success-custom {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: none;
    border-left: 5px solid #28a745;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.alert-error-custom {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: none;
    border-left: 5px solid #dc3545;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

.alert-success-custom i,
.alert-error-custom i {
    font-size: 20px;
}

.alert-success-custom ul,
.alert-error-custom ul {
    margin-left: 20px;
}

.alert-dismissible {
    position: relative;
    padding-right: 40px;
}

.btn-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for button */
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ========== RESPONSIVE LENGKAP UNTUK HALAMAN PENDAFTARAN ========== */

/* Extra Large (1200px - 1399px) */
@media (max-width: 1399px) {
    .pendaftaran-card {
        max-width: 750px;
        padding: 35px;
    }
    
    .pendaftaran-header h1 {
        font-size: 34px;
    }
    
    .form-section h3 {
        font-size: 20px;
    }
    
    .btn-pendaftaran {
        padding: 12px 35px;
        font-size: 16px;
    }
}

/* Large (992px - 1199px) */
@media (max-width: 1199px) {
    .pendaftaran-page {
        padding: 50px 0;
    }
    
    .pendaftaran-card {
        max-width: 700px;
        padding: 30px;
    }
    
    .pendaftaran-header h1 {
        font-size: 32px;
    }
    
    .pendaftaran-header p {
        font-size: 15px;
    }
    
    .form-section h3 {
        font-size: 19px;
    }
    
    .pendaftaran-cta {
        padding: 35px;
    }
    
    .pendaftaran-cta-content h3 {
        font-size: 26px;
    }
    
    .pendaftaran-cta-content p {
        font-size: 15px;
    }
    
    .btn-pendaftaran {
        padding: 12px 30px;
        font-size: 16px;
    }
}

/* Medium (768px - 991px) */
@media (max-width: 991px) {
    .pendaftaran-page {
        padding: 40px 20px;
    }
    
    .pendaftaran-header {
        margin-bottom: 30px;
    }
    
    .pendaftaran-header h1 {
        font-size: 28px;
    }
    
    .pendaftaran-header p {
        font-size: 14px;
    }
    
    .pendaftaran-card {
        padding: 25px;
        margin: 0 15px;
    }
    
    .pendaftaran-info {
        margin-bottom: 25px;
    }
    
    .alert-info {
        padding: 15px;
        font-size: 14px;
    }
    
    .form-section {
        margin-bottom: 25px;
        padding-bottom: 25px;
    }
    
    .form-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-control {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .form-actions {
        margin-top: 25px;
        gap: 15px;
    }
    
    .btn-submit,
    .btn-cancel {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .pendaftaran-cta {
        padding: 30px 25px;
    }
    
    .pendaftaran-cta-content h3 {
        font-size: 24px;
    }
    
    .pendaftaran-cta-content p {
        font-size: 14px;
    }
    
    .btn-pendaftaran {
        padding: 10px 25px;
        font-size: 15px;
    }
    
    .alert-closed {
        padding: 40px 30px;
    }
    
    .alert-closed h3 {
        font-size: 24px;
    }
    
    .file-upload-input {
        padding: 10px;
        font-size: 13px;
    }
}

/* Small (576px - 767px) */
@media (max-width: 767px) {
    .pendaftaran-page {
        padding: 30px 15px;
    }
    
    .pendaftaran-header h1 {
        font-size: 24px;
    }
    
    .pendaftaran-header p {
        font-size: 13px;
    }
    
    .pendaftaran-card {
        padding: 20px;
        margin: 0 10px;
        border-radius: 20px;
    }
    
    .alert-info {
        padding: 12px;
        font-size: 13px;
    }
    
    .form-section {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .form-section h3 {
        font-size: 17px;
        display: block;
        text-align: center;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    textarea.form-control {
        min-height: 80px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }
    
    .btn-submit,
    .btn-cancel {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        text-align: center;
    }
    
    .pendaftaran-cta {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .pendaftaran-cta-content h3 {
        font-size: 20px;
    }
    
    .pendaftaran-cta-content p {
        font-size: 13px;
    }
    
    .btn-pendaftaran {
        padding: 10px 25px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
    
    .pendaftaran-closed {
        padding: 40px 15px;
    }
    
    .alert-closed {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .alert-closed h3 {
        font-size: 20px;
    }
    
    .alert-closed p {
        font-size: 13px;
    }
    
    .btn-back {
        padding: 10px 25px;
        font-size: 13px;
        width: 100%;
        text-align: center;
    }
    
    .file-upload-input {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .file-upload-info small {
        font-size: 10px;
    }
    
    .required-star {
        font-size: 14px;
    }
    
    .optional-text {
        font-size: 10px;
    }
    
    .alert-success-custom,
    .alert-error-custom {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .alert-success-custom i,
    .alert-error-custom i {
        font-size: 18px;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-15px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Extra Small (320px - 575px) */
@media (max-width: 575px) {
    .pendaftaran-page {
        padding: 25px 10px;
    }
    
    .pendaftaran-header {
        margin-bottom: 20px;
    }
    
    .pendaftaran-header h1 {
        font-size: 20px;
    }
    
    .pendaftaran-header p {
        font-size: 12px;
    }
    
    .pendaftaran-card {
        padding: 15px;
        margin: 0 5px;
        border-radius: 16px;
    }
    
    .alert-info {
        padding: 10px;
        font-size: 12px;
    }
    
    .form-section h3 {
        font-size: 16px;
    }
    
    .form-group label {
        font-size: 12px;
    }
    
    .form-control {
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 10px;
    }
    
    .btn-submit,
    .btn-cancel {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .pendaftaran-cta {
        padding: 20px 15px;
    }
    
    .pendaftaran-cta-content h3 {
        font-size: 18px;
    }
    
    .pendaftaran-cta-content p {
        font-size: 12px;
    }
    
    .btn-pendaftaran {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .alert-closed {
        padding: 25px 15px;
    }
    
    .alert-closed h3 {
        font-size: 18px;
    }
    
    .alert-closed p {
        font-size: 12px;
    }
    
    .btn-back {
        padding: 8px 20px;
        font-size: 12px;
    }
    
    .file-upload-input {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .alert-success-custom,
    .alert-error-custom {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .btn-close {
        font-size: 16px;
        right: 10px;
    }
}

/* Landscape mode untuk mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .pendaftaran-page {
        padding: 20px 15px;
    }
    
    .pendaftaran-card {
        padding: 20px;
    }
    
    .form-section h3 {
        font-size: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: row;
    }
    
    .btn-submit,
    .btn-cancel {
        width: auto;
        flex: 1;
    }
}

/* Tablet landscape (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .pendaftaran-card {
        max-width: 80%;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* High DPI Screens (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .btn-pendaftaran,
    .btn-submit,
    .btn-cancel,
    .btn-back {
        image-rendering: -webkit-optimize-contrast;
    }
}


/* Touch device optimization */
@media (hover: none) and (pointer: coarse) {
    .btn-submit,
    .btn-cancel,
    .btn-pendaftaran,
    .btn-back {
        min-height: 44px;
    }
    
    .form-control,
    .file-upload-input {
        font-size: 16px; /* Mencegah zoom otomatis di iOS */
    }
    
    .btn-submit:active,
    .btn-cancel:active,
    .btn-pendaftaran:active {
        transform: scale(0.98);
    }
}

/* Loading state untuk form submit */
.btn-submit.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    right: 20px;
    margin-top: -9px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 575px) {
    .btn-submit.loading::after {
        width: 14px;
        height: 14px;
        margin-top: -7px;
        right: 15px;
    }
}

/* Smooth transition */
.pendaftaran-card,
.form-control,
.btn-submit,
.btn-cancel {
    transition: all 0.3s ease;
}