/* assets/css/malaysia-scholarship.css */

.ms-section {
    padding: 120px 20px 80px;
    background: #f8fbff;
    min-height: 100vh;
}

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

.ms-header h1 {
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.ms-header h1 span {
    color: var(--primary);
}

.ms-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Styles */
.ms-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 82, 212, 0.08);
}

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

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

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 212, 0.1);
}

.passport-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.passport-group input[type="text"] {
    flex-grow: 1;
}

.passport-check {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    cursor: pointer;
}

/* Dynamic Results Grid */
#resultsContainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.result-input-group {
    background: #f5f8fc;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e6f0ff;
}

.result-input-group label {
    font-size: 0.9rem;
    color: #555;
}

/* Dashboard Styles */
.ms-dashboard {
    max-width: 900px;
    margin: 0 auto;
    display: none; /* Hidden initially */
    animation: fadeIn 0.5s ease-out;
}

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

.dashboard-success {
    text-align: center;
    margin-bottom: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.dashboard-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 82, 212, 0.05);
}

.scholarship-amount-card {
    background: linear-gradient(135deg, var(--primary), #0046b5);
    color: white;
}

.scholarship-amount-card h3 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.amount-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
}

.disclaimer-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span:first-child {
    color: #666;
}

.detail-row span:last-child {
    font-weight: 600;
    color: #222;
    text-align: right;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f5f5f5;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.modal-close:hover {
    background: #e0e0e0;
}

.modal-data-list {
    list-style: none;
    padding: 0;
}

.modal-data-list li {
    padding: 15px;
    background: #f8fbff;
    margin-bottom: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
}

.modal-data-list li strong {
    color: var(--dark);
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .passport-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .passport-group input[type="text"] {
        width: 100%;
    }
    #resultsContainer {
        grid-template-columns: 1fr;
    }
}
