/* Midtrans Direct Checkout Styles */

.mdc-error-box {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #f5c6cb;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
    font-weight: 600;
}

.mdc-checkout-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.mdc-checkout-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.mdc-checkout-form {
    margin-top: 0;
}

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

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

.mdc-form-group .required {
    color: #e74c3c;
}

.mdc-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.mdc-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.mdc-input::placeholder {
    color: #aaa;
}

.mdc-help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #888;
}

.mdc-submit-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.mdc-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

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

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

.mdc-features {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 30px;
    margin-top: 20px;
    padding: 15px;
    font-size: 14px;
    color: #333;
    background: #ffffff;
}

.mdc-feature-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    white-space: nowrap;
}

.mdc-feature-item:nth-child(1) svg {
    color: #333;
}

.mdc-feature-item:nth-child(2) svg {
    color: #333;
}

.mdc-feature-item:nth-child(3) svg {
    color: #333;
}

.mdc-feature-item svg {
    flex-shrink: 0;
}

.mdc-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #f5c6cb;
}

/* Loading spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.button-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 640px) {
    .mdc-checkout-container {
        padding: 25px 20px;
    }
    
    .mdc-features {
        gap: 20px;
        font-size: 13px;
        padding: 12px;
    }
    
    .mdc-feature-item {
        gap: 6px;
    }
    
    .mdc-feature-item svg {
        width: 18px;
        height: 18px;
    }
}

/* Midtrans Snap Modal Override */
#snap-midtrans {
    z-index: 999999 !important;
}

.snap-overlay {
    z-index: 999998 !important;
}
