/* Checkout Page Styles */

.checkout-container {
    background: #f9fafb;
    min-height: calc(100vh - 80px);
    padding: 3rem 2rem;
}

.checkout-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

/* Order Summary */
.order-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.order-summary h2 {
    color: var(--salla-dark);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.design-preview {
    margin-bottom: 1.5rem;
    text-align: center;
}

.design-preview img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.design-preview h3 {
    color: var(--salla-dark);
    font-size: 1.2rem;
}

.summary-details {
    border-top: 2px solid #e5e7eb;
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    color: var(--salla-text);
}

.summary-row.total {
    border-top: 2px solid #e5e7eb;
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.1rem;
}

.summary-row.total strong {
    color: var(--salla-primary);
}

.features-included {
    background: var(--salla-light-bg);
    padding: 1.5rem;
    border-radius: 8px;
}

.features-included h4 {
    color: var(--salla-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.features-included ul {
    list-style: none;
    padding: 0;
}

.features-included li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    color: var(--salla-text);
}

.features-included li i {
    color: var(--salla-primary);
}

/* Checkout Form */
.checkout-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.checkout-form h2 {
    color: var(--salla-dark);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: var(--salla-primary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--salla-text);
    font-weight: 600;
}

.required {
    color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="file"] {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--salla-primary);
    box-shadow: 0 0 0 3px rgba(0, 73, 86, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: var(--salla-text-light);
    font-size: 0.85rem;
}

/* Payment Methods */
.payment-methods {
    margin-bottom: 2rem;
}

.payment-methods h4 {
    color: var(--salla-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: var(--salla-primary);
    background: var(--salla-light-bg);
}

.payment-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--salla-primary);
}

.payment-option i {
    font-size: 1.5rem;
    color: var(--salla-text-light);
    transition: all 0.3s;
    min-width: 24px;
    text-align: center;
}

.payment-option span {
    font-weight: 600;
    color: var(--salla-text);
    transition: all 0.3s;
    font-size: 1rem;
}

.payment-option:has(input[type="checkbox"]:checked) {
    background: var(--salla-light-bg);
    border-color: var(--salla-primary);
    box-shadow: 0 0 0 3px rgba(0, 73, 86, 0.1);
}

.payment-option:has(input[type="checkbox"]:checked) i {
    color: var(--salla-primary);
}

.payment-option:has(input[type="checkbox"]:checked) span {
    color: var(--salla-primary);
}

/* Payment Info */
.payment-info {
    background: var(--salla-light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    margin-top: -0.8rem;
    margin-right: 2.5rem;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-info h4 {
    color: var(--salla-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Agreement Section */
.agreement-section {
    background: var(--salla-light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 2px solid #e5e7eb;
}

.agreement-section h4 {
    color: var(--salla-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.agreement-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.agreement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agreement-list li {
    display: flex;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e5e7eb;
    align-items: flex-start;
}

.agreement-list li:last-child {
    border-bottom: none;
}

.agreement-list li i {
    color: var(--salla-primary);
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.agreement-list li span {
    color: var(--salla-text);
    line-height: 1.6;
    font-size: 0.95rem;
}

.agreement-checkbox {
    background: white;
    padding: 1.2rem;
    border-radius: 8px;
    border: 2px solid var(--salla-primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--salla-primary);
    flex-shrink: 0;
}

.checkbox-label span {
    color: var(--salla-dark);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
}


.bank-details {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.bank-row:last-child {
    border-bottom: none;
}

.bank-label {
    color: var(--salla-text-light);
    font-weight: 600;
}

.bank-value {
    color: var(--salla-dark);
    font-weight: 600;
}

.bank-row.total-amount {
    background: var(--salla-light-bg);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.bank-row.total-amount .bank-value {
    color: var(--salla-primary);
    font-size: 1.1rem;
}

.btn-copy {
    background: var(--salla-primary);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-copy:hover {
    background: var(--salla-dark);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--salla-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    background: var(--salla-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 73, 86, 0.3);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.success-actions {
    text-align: center;
    padding: 2rem 0;
}

.btn-back {
    background: white;
    color: var(--salla-primary);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--salla-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back:hover {
    background: var(--salla-primary);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-container {
        padding: 1.5rem 1rem;
    }

    .checkout-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .order-summary {
        position: relative;
        top: 0;
        padding: 1.5rem;
    }

    .order-summary h2 {
        font-size: 1.2rem;
    }

    .design-preview h3 {
        font-size: 1rem;
    }

    .summary-row {
        font-size: 0.9rem;
    }

    .summary-row.total {
        font-size: 1rem;
    }

    .features-included {
        padding: 1rem;
    }

    .features-included h4 {
        font-size: 0.9rem;
    }

    .features-included li {
        font-size: 0.85rem;
    }

    .checkout-form {
        padding: 1.5rem;
    }

    .checkout-form h2 {
        font-size: 1.3rem;
    }

    .form-section h3 {
        font-size: 1.1rem;
    }

    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="file"] {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .payment-option {
        padding: 0.9rem 1rem;
    }

    .payment-option i {
        font-size: 1.3rem;
    }

    .payment-option span {
        font-size: 0.95rem;
    }

    .payment-info {
        padding: 1rem;
    }

    .payment-info h4 {
        font-size: 0.95rem;
    }

    .agreement-section {
        padding: 1rem;
    }

    .agreement-section h4 {
        font-size: 1rem;
    }

    .agreement-content {
        padding: 1rem;
    }

    .agreement-list li {
        gap: 0.6rem;
        padding: 0.6rem 0;
    }

    .agreement-list li i {
        font-size: 0.9rem;
    }

    .agreement-list li span {
        font-size: 0.9rem;
    }

    .agreement-checkbox {
        padding: 1rem;
    }

    .checkbox-label span {
        font-size: 0.95rem;
    }

    .bank-details {
        padding: 1rem;
    }

    .bank-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.6rem 0;
    }

    .bank-label,
    .bank-value {
        font-size: 0.9rem;
    }

    .bank-row.total-amount {
        padding: 0.8rem;
    }

    .bank-row.total-amount .bank-value {
        font-size: 1rem;
    }

    .btn-copy {
        align-self: flex-start;
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }

    .btn-submit {
        padding: 1rem;
        font-size: 1.1rem;
    }

    .alert {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .btn-back {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}