/* Online Payment Section - How It Works */
.online-payment-section {
    padding: 1rem 0;
    background: #ffffff;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

/* Content Grid */
.payment-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

/* Left Column - Steps */
.steps-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: rgba(52, 184, 193, 0.1);
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.step-icon svg {
    width: 24px;
    height: 24px;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.step-number {
    color: var(--color-primary);
    margin-right: 0.25rem;
}

.step-description {
    font-size: 1rem;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* Right Column - Payment Image */
.payment-image-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.payment-image-wrapper {
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.payment-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Secure Payment Wrapper - Full Width */
.secure-payment-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 2rem;
}

.payment-card-mockup {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.card-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.card-logo-item {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #666666;
    text-align: center;
    min-width: 0;
    word-break: break-word;
}

.card-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1a1a1a;
    background: #ffffff;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(52, 184, 193, 0.1);
}

.form-input::placeholder {
    color: #999999;
}

.confirm-button {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.confirm-button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 184, 193, 0.3);
}

.confirm-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (min-width: 640px) {
    .online-payment-section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .payment-content-grid {
        gap: 4rem;
    }

    .card-logos {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .card-logo-item {
        padding: 0.875rem 1rem;
    }
}

@media (min-width: 968px) {
    .online-payment-section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 3rem;
    }

    .payment-content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: flex-start;
    }

    .steps-column {
        padding-right: 2rem;
    }

    .payment-image-column {
        position: sticky;
        top: 2rem;
        align-items: flex-start;
    }

    .payment-image-wrapper {
        max-width: 100%;
    }

    .secure-payment-wrapper {
        padding-top: 3rem;
    }

    .card-logos {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .card-logo-item {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .confirm-button {
        width: auto;
        min-width: 200px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    .payment-content-grid {
        max-width: 1100px;
    }
}

/* RTL Support */
[dir="rtl"] .step-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .step-number {
    margin-right: 0;
    margin-left: 0.25rem;
}

[dir="rtl"] .steps-column {
    padding-right: 0;
    padding-left: 2rem;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .confirm-button {
        transition: none;
    }

    .form-input {
        transition: none;
    }
}

