/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo-text {
    color: #E65100;
}

.logo-svg {
    height: 32px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #666;
}

.help-icon, .client-area {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #666;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.logout-btn {
    background: none;
    border: none;
    color: #E65100;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #f0f0f0;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.payment-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
}

.payment-form h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.description {
    color: #666;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.5;
}

/* Form styles */
.form-group {
    margin-bottom: 25px;
}

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

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #E65100;
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.form-links {
    margin-top: 8px;
    text-align: right;
}

.forgot-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: #E65100;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
}

.btn-primary:hover {
    background-color: #d84315;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    background-color: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #0066cc;
    color: white;
}

/* Divider */
.divider {
    text-align: center;
    margin: 30px 0;
    color: #666;
}

.divider span {
    background-color: #fff;
    padding: 0 20px;
    font-size: 14px;
}

/* Info icon and tooltip */
.info-icon {
    color: #666;
    cursor: help;
    margin-left: 5px;
}

.tooltip {
    position: absolute;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    max-width: 250px;
    display: none;
}

/* Payment methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
}

.payment-option input[type="radio"] {
    margin-right: 10px;
}

.payment-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 0;
}

.payment-option i {
    font-size: 18px;
    color: #E65100;
}

/* Loading page styles */
.loading-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.loading-steps {
    margin: 40px 0;
}

.loading-step {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.loading-step:last-child {
    border-bottom: none;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.step-icon i {
    font-size: 20px;
    color: #666;
}

.step-text {
    flex: 1;
    text-align: left;
}

.step-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.status-text {
    font-size: 14px;
    color: #666;
}

.status-text.completed {
    color: #4CAF50;
    font-weight: 600;
}

.status-text.processing {
    color: #E65100;
    font-weight: 600;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #E65100;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.alert-message {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-icon i {
    color: #e17055;
    font-size: 20px;
}

.alert-text {
    color: #856404;
}

/* Invoice page styles */
.invoice-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 800px;
}

.invoice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.invoice-header h1 {
    color: #d32f2f;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-icon {
    color: #ff9800;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.overdue {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.invoice-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.invoice-card, .payment-issue-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.card-header h2 {
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.detail-label {
    font-weight: 500;
    color: #666;
}

.detail-value {
    font-weight: 600;
    color: #333;
}

.detail-value.overdue-date {
    color: #d32f2f;
}

.detail-value.amount {
    color: #E65100;
    font-size: 18px;
}

.issue-reason, .alternative-reason {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.issue-reason:last-child, .alternative-reason:last-child {
    margin-bottom: 0;
}

.reason-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff3e0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reason-icon i {
    color: #E65100;
    font-size: 16px;
}

.reason-text p {
    margin-bottom: 10px;
}

.reason-text ul {
    margin-left: 20px;
    color: #666;
}

.service-warning {
    background-color: #fff3e0;
    border: 1px solid #ffcc02;
    border-radius: 8px;
    padding: 15px;
}

.service-resume-info {
    background-color: #f1f8e9;
    border: 1px solid #8bc34a;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.resume-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.resume-content i {
    color: #4caf50;
    font-size: 20px;
}

.resume-text {
    color: #2e7d32;
}

.resume-text p {
    margin: 5px 0 0 0;
    font-size: 14px;
}

.warning-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-content i {
    color: #ff9800;
    font-size: 20px;
}

.warning-text {
    color: #e65100;
}

.payment-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.payment-actions .btn-primary,
.payment-actions .btn-secondary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.payment-btn {
    font-size: 16px;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 20px;
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-info {
    color: #666;
    font-size: 12px;
}

.footer-legal {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-legal a {
    color: #0066cc;
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        padding: 0 15px;
    }
    
    .header-right {
        gap: 15px;
    }
    
    .language-selector span,
    .client-area span {
        display: none;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .payment-form,
    .loading-container,
    .invoice-container {
        padding: 20px;
    }
    
    .invoice-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .payment-form h1,
    .loading-container h1,
    .invoice-container h1 {
        font-size: 24px;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .loading-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
