/**
 * Asrama Registration Form - Styles
 * LearnPress Eduma Theme Compatible
 * 
 * @version 1.0.0
 */

/* ===================================
   Container & Wrapper
   =================================== */

.asrama-registration-wrapper {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 20px;
}

.asrama-registration-container {
    background: #fff;
    border-radius: 8px;
    /* box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08); */
    padding: 25px 60px;
}

/* ===================================
   Header
   =================================== */

.asrama-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.asrama-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.asrama-description {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ===================================
   Form Styles
   =================================== */

.asrama-form {
    margin-top: 30px;
}

.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-half {
    flex: 1;
    min-width: 0;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-group .required {
    color: #ff0000;
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-control::placeholder {
    color: #999;
    opacity: 1;
}

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

/* ===================================
   Submit Button
   =================================== */

.form-actions {
    margin-top: 40px;
    text-align: center;
}

.btn-submit {
    background: #25D366;
    color: #fff;
    border: none;
    padding: 16px 50px;
    /* font-size: 16px; */
    font-weight: 700;
    /* border-radius: 50px; */
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); */
}

.btn-submit:hover {
    background: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-submit i {
    font-size: 20px;
}

/* Loading state */
.btn-submit.loading {
    opacity: 0.7;
    cursor: wait;
}

.btn-submit.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

/* ===================================
   Info Message
   =================================== */

.form-info {
    margin-top: 30px;
    padding: 15px 20px;
    background: #e8f4fd;
    border-left: 4px solid #4a90e2;
    border-radius: 4px;
}

.form-info p {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-info i {
    color: #4a90e2;
    font-size: 18px;
}

/* ===================================
   Validation Styles
   =================================== */

.form-control.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-control.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message i {
    font-size: 14px;
}

/* ===================================
   Success Message
   =================================== */

.success-message {
    margin-top: 20px;
    padding: 15px 20px;
    background: #d4edda;
    border-left: 4px solid #28a745;
    border-radius: 4px;
    color: #155724;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-message i {
    font-size: 18px;
    color: #28a745;
}

/* ===================================
   Responsive Design
   =================================== */

@media screen and (max-width: 768px) {
    .asrama-registration-container {
        padding: 30px 20px;
    }
    
    .asrama-title {
        font-size: 24px;
    }
    
    .asrama-description {
        font-size: 14px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-group-half {
        width: 100%;
    }
    
    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 14px 30px;
    }
}

@media screen and (max-width: 480px) {
    .asrama-registration-wrapper {
        padding: 20px 10px;
    }
    
    .asrama-registration-container {
        padding: 20px 15px;
        border-radius: 4px;
    }
    
    .asrama-title {
        font-size: 20px;
    }
    
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .btn-submit,
    .form-info {
        display: none;
    }
}
