/* MyFees by Zuse - Frontend Styles */

:root {
    --myfees-black: #000000;
    --myfees-dark-gray: #1a1a1a;
    --myfees-gray: #333333;
    --myfees-light-gray: #f5f5f5;
    --myfees-white: #ffffff;
    --myfees-accent: #4CAF50;
    --myfees-error: #f44336;
    --myfees-warning: #ff9800;
    --myfees-border-radius: 12px;
    --myfees-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --myfees-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.myfees-payment-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.myfees-payment-card {
    background: var(--myfees-white);
    border-radius: var(--myfees-border-radius);
    box-shadow: var(--myfees-shadow);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.myfees-payment-card:hover {
    box-shadow: var(--myfees-shadow-hover);
}

/* Header */
.myfees-header {
    background: linear-gradient(135deg, var(--myfees-black) 0%, var(--myfees-gray) 100%);
    padding: 30px;
    text-align: center;
    color: var(--myfees-white);
}

.myfees-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.myfees-logo {
    max-height: 60px;
    width: auto;
}

.myfees-logo-placeholder {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 2px;
}

.myfees-title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--myfees-white);
}

/* Form Styles */
.myfees-form {
    padding: 40px 30px;
}

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

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

.myfees-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--myfees-gray);
    font-size: 14px;
}

.required {
    color: var(--myfees-error);
}

.myfees-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--myfees-white);
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Specific styling for select dropdown */

select.myfees-input {
    background: var(--myfees-white) url('data:image/svg+xml;utf8,<svg fill="%23333333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

.myfees-input:focus {
    outline: none;
    border-color: var(--myfees-black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.myfees-input:hover {
    border-color: #bdbdbd;
}

/* Amount Display */
.myfees-amount-display {
    background: var(--myfees-light-gray);
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
    border: 2px dashed #e0e0e0;
}

.myfees-amount-label {
    font-size: 14px;
    color: var(--myfees-gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.myfees-amount-value {
    font-size: 36px;
    font-weight: bold;
    color: var(--myfees-black);
    font-family: 'Courier New', monospace;
}

.myfees-select-course-msg {
    font-size: 16px;
    font-weight: normal;
    color: #999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-style: italic;
}

/* Messages */
.myfees-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.myfees-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid var(--myfees-accent);
}

.myfees-message.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid var(--myfees-error);
}

.myfees-message.warning {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid var(--myfees-warning);
}

/* Submit Button */
.myfees-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--myfees-black);
    color: var(--myfees-white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.myfees-submit-btn:hover:not(:disabled) {
    background: var(--myfees-gray);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.myfees-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.myfees-submit-btn .btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--myfees-white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Footer */
.myfees-footer {
    background: var(--myfees-light-gray);
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.myfees-footer p {
    margin: 0 0 10px 0;
    color: var(--myfees-gray);
    font-size: 13px;
}

.myfees-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--myfees-accent);
    font-size: 12px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .myfees-payment-container {
        margin: 20px auto;
        padding: 10px;
    }
    
    .myfees-form {
        padding: 30px 20px;
    }
    
    .myfees-header {
        padding: 25px 20px;
    }
    
    .myfees-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .myfees-logos {
        gap: 20px;
    }
    
    .myfees-logo {
        max-height: 45px;
    }
    
    .myfees-title {
        font-size: 22px;
    }
    
    .myfees-amount-value {
        font-size: 28px;
    }
}

/* Validation States */
.myfees-input:invalid:not(:placeholder-shown) {
    border-color: var(--myfees-error);
}

.myfees-input:valid:not(:placeholder-shown) {
    border-color: var(--myfees-accent);
}

/* Loading State */
.myfees-loading {
    position: relative;
    pointer-events: none;
}

.myfees-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}
