/* Checkout Page Styles */

.checkout-header {
    background: linear-gradient(135deg, #0d9488 0%, #1e40af 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.checkout-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-3px);
}

.header-logo {
    font-weight: 600;
    font-size: 1.1em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.checkout-main {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: calc(100vh - 200px);
    padding: 20px;
}

.checkout-wrapper {
    max-width: 1200px;
    width:100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.checkout-card,
.summary-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.checkout-card h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Checkout Steps */
.checkout-steps {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, #0d9488 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
}

.step-label {
    font-size: 0.9em;
    color: #64748b;
    font-weight: 500;
}

.step.active .step-label {
    color: #0d9488;
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 10px;
    margin-top: -20px;
}

/* Form Styles */
.form-section {
    margin-bottom: 35px;
}

.form-section h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.required {
    color: #dc2626;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 0.85em;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.payment-method-option {
    display: block;
    cursor: pointer;
}

.payment-method-option input[type="radio"] {
    display: none;
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.payment-method-option input[type="radio"]:checked + .payment-method-card {
    border-color: #0d9488;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, rgba(30, 64, 175, 0.05) 100%);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.2);
}

.payment-method-card:hover {
    border-color: #0d9488;
    transform: translateY(-2px);
}

.payment-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.payment-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-weight: 700;
    font-size: 1.1em;
    color: #1e293b;
    margin-bottom: 4px;
}

.payment-desc {
    font-size: 0.9em;
    color: #64748b;
}

.payment-check {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.payment-method-option input[type="radio"]:checked + .payment-method-card .payment-check {
    background: #0d9488;
}

/* Error Message */
.error-message {
    background: #fee2e2;
    border: 2px solid #dc2626;
    color: #991b1b;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

/* Submit Button */
.checkout-submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #0d9488 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    font-family: inherit;
}

.checkout-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.4);
}

.checkout-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.checkout-security {
    text-align: center;
    margin-top: 20px;
    color: #64748b;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Summary Card */
.summary-card h3 {
    font-size: 1.5em;
    margin-bottom: 25px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-item {
    margin-bottom: 25px;
}

.summary-product {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.product-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0d9488 0%, #1e40af 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3em;
}

.product-name {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.product-desc {
    font-size: 0.9em;
    color: #64748b;
}

.summary-features {
    margin: 25px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #334155;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item i {
    color: #0d9488;
}

.summary-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 25px 0;
}

.summary-pricing {
    margin-bottom: 25px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #334155;
}

.price-row.discount {
    color: #0d9488;
    font-weight: 600;
}

.price-row.total {
    font-size: 1.3em;
    font-weight: 700;
    color: #1e293b;
    padding-top: 15px;
    border-top: 2px solid #e2e8f0;
}

.total-price {
    color: #0d9488;
    font-size: 1.2em;
}

.price-old {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.9em;
}

.summary-guarantee {
    margin-bottom: 25px;
    padding: 20px;
    background: #f0fdf4;
    border-radius: 12px;
    border: 2px solid #86efac;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #166534;
    font-size: 0.9em;
}

.guarantee-item:last-child {
    margin-bottom: 0;
}

.guarantee-item i {
    color: #16a34a;
}

.summary-support {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.summary-support p {
    margin-bottom: 12px;
    color: #64748b;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d9488;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.support-link:hover {
    color: #1e40af;
    transform: translateY(-2px);
}

.checkout-footer {
    background: #1e293b;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #0d9488;
}

/* Responsive */
@media (max-width: 968px) {
    .checkout-wrapper {
        grid-template-columns: 1fr;
    }

    .checkout-summary-section {
        order: -1;
    }

    .summary-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .checkout-main {
        padding: 15px;
        min-height: calc(100vh - 100px);
    }

    .checkout-card,
    .summary-card {
        padding: 15px;
    }

    .checkout-card h2 {
        font-size: 1.5em;
    }

    .checkout-steps {
        margin-bottom: 30px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }

    .payment-method-card {
        padding: 15px;
    }

    .payment-icon {
        width: 50px;
        height: 50px;
    }
}

