* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.payment-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.5s ease;
    display: flex;
}

.payment-container {
    display: flex;
    width: 100%;
    min-height: 600px;
}

/* Left Sidebar */
.step-sidebar {
    /* background: linear-gradient(180deg, #667eea 0%, #764ba2 100%); */
    background: #385CAE !important;
    color: white;
    padding: 40px 30px;
    width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.payment-header-compact {
    text-align: center;
    margin-bottom: 40px;
}

.payment-header-compact i {
    font-size: 46px;
    margin-bottom: 15px;
    display: block;
}

.payment-header-compact h5 {
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: 700;
}

.payment-header-compact p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Vertical Step Indicator */
.step-indicator-vertical {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step-indicator-vertical .step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step-indicator-vertical .step.active,
.step-indicator-vertical .step.completed {
    opacity: 1;
}

.step-circle {
    position: relative;
    flex-shrink: 0;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: white;
    color: #667eea;
    border-color: white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.step.completed .step-number {
    background-color: #28a745;
    border-color: #28a745;
    color: transparent;
    font-size: 0;
}

.step.completed .step-number::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.step-content {
    padding-top: 5px;
}

.step-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.step-line-vertical {
    width: 3px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3);
    margin-left: 24px;
    transition: background-color 0.3s ease;
}

.step.completed + .step-line-vertical {
    background-color: #28a745;
}

.security-badge-sidebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-top: 40px;
    backdrop-filter: blur(10px);
}

.security-badge-sidebar i {
    font-size: 32px;
    color: white;
    font-weight: bold;
    /* color: #28a745; */
}

.security-badge-sidebar div {
    font-size: 12px;
    line-height: 1.4;
}

.security-badge-sidebar strong {
    font-size: 14px;
}

/* Right Content Area */
.form-content {
    flex: 1;
    padding: 40px 50px;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-header {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: #385CAE !important;
    color: white;
    padding: 30px;
    text-align: center;
    display: none; /* Hidden in new layout */
}

.payment-header i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.payment-header h4 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.payment-header p {
    opacity: 0.9;
    font-size: 14px;
}

.payment-body {
    padding: 30px;
    display: none; /* Old layout hidden */
}

/* Form Step Animation */
.form-step {
    animation: fadeInStep 0.4s ease;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.input-group-text {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-left: none;
    border-radius: 0 10px 10px 0;
    font-weight: 600;
    color: #667eea;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 20px;
}

.expiry-cvv-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.helper-text {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.btn-payment {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: #385CAE !important;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-payment:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-payment:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-outline-secondary-custom {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: white;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-outline-secondary-custom:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

.security-badge {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: none; /* Old layout hidden */
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #666;
}

.security-badge i {
    font-size: 24px;
    color: #28a745;
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive */
@media (max-width: 992px) {
    .payment-container {
        flex-direction: column;
    }
    
    .step-sidebar {
        width: 100%;
        padding: 30px 20px;
    }
    
    .step-indicator-vertical {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    
    .step-indicator-vertical .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-line-vertical {
        width: 60px;
        height: 3px;
        margin-left: 0;
        margin-top: 24px;
    }
    
    .step.completed + .step-line-vertical {
        background-color: #28a745;
    }
    
    .payment-header-compact {
        margin-bottom: 30px;
    }
    
    .security-badge-sidebar {
        margin-top: 30px;
    }
    
    .form-content {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .payment-card {
        border-radius: 0;
        margin: 0;
    }

    .step-sidebar {
        padding: 20px 15px;
    }

    .payment-header-compact i {
        font-size: 38px;
    }

    .payment-header-compact h5 {
        font-size: 18px;
    }

    .form-content {
        padding: 20px 15px;
    }

    .expiry-cvv-row {
        grid-template-columns: 1fr;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .step-title {
        font-size: 14px;
    }
    
    .step-line-vertical {
        width: 40px;
    }
    
    .row > .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Input number spinner gizle */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}
