* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    background: linear-gradient(135deg, #1a3a8f 0%, #2d5cc2 100%);
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 32px;
    color: #4CAF50;
    background: white;
    padding: 8px;
    border-radius: 10px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Alerts */
.alert {
    margin: 20px 40px;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideIn 0.3s ease;
    transition: opacity 0.3s ease;
}

.alert.success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

.alert.error {
    background: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
}

.alert i {
    font-size: 20px;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Payment Container */
.payment-container {
    display: flex;
    min-height: 700px;
}

.payment-form-container {
    flex: 1;
    padding: 40px;
    border-right: 1px solid #e9ecef;
}

.order-summary {
    width: 380px;
    padding: 40px;
    background: #f8f9fa;
}

/* Form Header */
.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 28px;
    color: #1a3a8f;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-header p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.5;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 17px;
}

.section-label i {
    color: #1a3a8f;
}

/* Amount Input */
.amount-input {
    position: relative;
    margin-bottom: 10px;
}

.currency-symbol {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #1a3a8f;
    font-size: 22px;
    z-index: 2;
}

.amount-input input {
    width: 100%;
    padding: 20px 20px 20px 70px;
    font-size: 36px;
    font-weight: 700;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s;
    background: #f8f9fa;
    color: #2c3e50;
}

.amount-input input:focus {
    outline: none;
    border-color: #1a3a8f;
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 58, 143, 0.1);
}

.amount-note {
    display: block;
    color: #6c757d;
    font-size: 14px;
    margin-top: 8px;
}

/* Form Layout */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #1a3a8f;
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 58, 143, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
}

/* Payment Methods */
.payment-methods {
    margin-bottom: 20px;
}

.method-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.method-card:hover {
    border-color: #1a3a8f;
    background: white;
    transform: translateY(-2px);
}

.method-card.active {
    border-color: #1a3a8f;
    background: white;
    box-shadow: 0 5px 15px rgba(26, 58, 143, 0.1);
}

.method-card i {
    font-size: 28px;
    color: #6c757d;
}

.method-card.active i.fa-cc-visa {
    color: #1a3a8f;
}

.method-card.active i.fa-cc-mastercard {
    color: #eb001b;
}

.method-card span {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.method-info {
    padding: 15px;
    background: #e8f5e9;
    border-radius: 10px;
    border-left: 4px solid #4caf50;
}

.method-info p {
    color: #2e7d32;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.method-info i {
    margin-top: 2px;
}

/* Terms Agreement */
.terms-agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.terms-agreement input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #1a3a8f;
}

.terms-agreement label {
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
}

.terms-agreement a {
    color: #1a3a8f;
    text-decoration: none;
    font-weight: 600;
}

.terms-agreement a:hover {
    text-decoration: underline;
}

/* Pay Button */
.pay-button {
    width: 100%;
    padding: 22px;
    background: linear-gradient(135deg, #1a3a8f 0%, #2d5cc2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.pay-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 58, 143, 0.3);
}

.pay-button:active:not(:disabled) {
    transform: translateY(-1px);
}

.pay-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.secure-note {
    text-align: center;
    color: #28a745;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
}

/* Order Summary */
.summary-header {
    margin-bottom: 25px;
}

.summary-header h3 {
    font-size: 22px;
    color: #1a3a8f;
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-content {
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    font-size: 15px;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total {
    font-size: 20px;
    font-weight: 700;
    color: #1a3a8f;
    padding-top: 20px;
    margin-top: 10px;
    border-top: 2px solid #e9ecef;
}

/* Security Features */
.security-features {
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.security-features h4 {
    color: #1a3a8f;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
}

.security-features ul {
    list-style: none;
}

.security-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #495057;
    font-size: 14px;
}

.security-features li i {
    color: #28a745;
    font-size: 16px;
}

/* Accepted Cards */
.accepted-cards {
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.accepted-cards h4 {
    color: #1a3a8f;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 18px;
}

.card-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 48px;
    margin-bottom: 15px;
}

.card-logos i.fa-cc-visa {
    color: #1a3a8f;
}

.card-logos i.fa-cc-mastercard {
    color: #eb001b;
}

.card-logos i.fa-credit-card {
    color: #6c757d;
}

.card-note {
    color: #6c757d;
    font-size: 13px;
    margin-top: 10px;
}

/* Support Info */
.support-info {
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.support-info h4 {
    color: #1a3a8f;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
}

.support-info p {
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.contact-info {
    margin-top: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #6c757d;
    font-size: 13px;
}

.contact-info i {
    color: #1a3a8f;
    width: 16px;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.loading-content {
    text-align: center;
    max-width: 500px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.spinner {
    width: 80px;
    height: 80px;
    border: 5px solid #e9ecef;
    border-top-color: #1a3a8f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading-content h3 {
    color: #1a3a8f;
    margin-bottom: 15px;
    font-size: 24px;
}

.loading-content p {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 16px;
}

.loading-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    position: relative;
}

.loading-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step span {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 10px;
    border: 3px solid white;
}

.step.active span {
    background: #1a3a8f;
    color: white;
}

.step:after {
    content: attr(data-text);
    position: absolute;
    top: 50px;
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .payment-container {
        flex-direction: column;
    }
    
    .order-summary {
        width: 100%;
        border-top: 1px solid #e9ecef;
        border-right: none;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    
    .payment-form-container,
    .order-summary {
        padding: 25px;
    }
    
    .amount-input input {
        font-size: 28px;
        padding: 18px 18px 18px 60px;
    }
    
    .currency-symbol {
        left: 18px;
        font-size: 20px;
    }
    
    .card-logos {
        font-size: 36px;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 15px;
    }
    
    .payment-form-container,
    .order-summary {
        padding: 20px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .pay-button {
        padding: 18px;
        font-size: 16px;
    }
    
    .loading-content {
        padding: 25px;
        margin: 20px;
    }
}