/* Checkout Page Styles */

/* Stepper */
.checkout-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px 0;
    position: relative;
}

.checkout-stepper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.checkout-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.checkout-step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #5D666F;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.checkout-step.active .checkout-step-number {
    background: #20282D;
    border-color: #20282D;
    color: white;
    transform: scale(1.1);
}

.checkout-step.completed .checkout-step-number {
    background: #3EB75E;
    border-color: #3EB75E;
    color: white;
}

.checkout-step.completed .checkout-step-number::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 20px;
}

.checkout-step-label {
    font-size: 14px;
    font-weight: 500;
    color: #5D666F;
    text-align: center;
}

.checkout-step.active .checkout-step-label {
    color: #20282D;
    font-weight: 600;
}

.checkout-step.completed .checkout-step-label {
    color: #3EB75E;
}

/* Form Validation */
.form-control.is-invalid {
    border-color: #FF0003;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23FF0003'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6 .4.4.4-.4m0 4.8-.4-.4-.4.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

.form-control.is-valid {
    border-color: #3EB75E;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%233EB75E' d='m2.3 6.73.98-.98-.98-.98-.98.98.98.98zm2.5-2.5.98-.98-.98-.98-.98.98.98.98z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #FF0003;
    display: flex;
    align-items: center;
    gap: 5px;
}

.invalid-feedback::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #3EB75E;
    display: flex;
    align-items: center;
    gap: 5px;
}

.valid-feedback::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
}

/* Form Improvements */
.checkout-form {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.checkout-form h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1C2539;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.form-label {
    font-weight: 600;
    color: #1C2539;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label .text-danger {
    color: #FF0003;
}

.form-control {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #20282D;
    box-shadow: 0 0 0 3px rgba(32, 40, 45, 0.1);
    outline: none;
}

/* Phone Number Formatting */
.phone-input-wrapper {
    position: relative;
}

.phone-input-wrapper::before {
    content: '+90';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #5D666F;
    font-weight: 500;
    z-index: 1;
}

.phone-input-wrapper .form-control {
    padding-left: 50px;
}

/* Character Counter */
.character-counter {
    font-size: 12px;
    color: #5D666F;
    text-align: right;
    margin-top: 5px;
}

.character-counter.warning {
    color: #FFA500;
}

.character-counter.danger {
    color: #FF0003;
}

/* Order Summary Card */
.order-summary {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1C2539;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.order-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-title {
    font-weight: 600;
    color: #1C2539;
    font-size: 15px;
    margin-bottom: 5px;
}

.order-item-price {
    color: #20282D;
    font-weight: 600;
    font-size: 16px;
}

.order-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 15px;
    color: #5D666F;
}

.order-total-row:last-child {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 20px;
    font-weight: 700;
    color: #20282D;
}

/* Security Badges */
.security-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 12px;
    color: #5D666F;
}

.security-badge i {
    color: #3EB75E;
    font-size: 16px;
}

/* Guest Checkout */
.guest-checkout {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
}

.guest-checkout-title {
    font-size: 18px;
    font-weight: 600;
    color: #1C2539;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guest-checkout-title i {
    color: #20282D;
}

.guest-checkout-text {
    font-size: 14px;
    color: #5D666F;
    margin-bottom: 15px;
}

.guest-checkout-link {
    color: #20282D;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.guest-checkout-link:hover {
    color: #151a1d;
    text-decoration: underline;
}

/* Invoice Information */
.invoice-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.invoice-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.invoice-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.invoice-toggle label {
    font-weight: 600;
    color: #1C2539;
    cursor: pointer;
    margin: 0;
}

.invoice-fields {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.invoice-fields.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Payment Methods */
.payment-methods {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.payment-methods-title {
    font-size: 18px;
    font-weight: 600;
    color: #1C2539;
    margin-bottom: 15px;
}

.payment-method-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}

.payment-method-card:hover {
    border-color: #20282D;
    box-shadow: 0 2px 8px rgba(32, 40, 45, 0.1);
}

.payment-method-card.selected {
    border-color: #20282D;
    background: #f8f9fa;
}

.payment-method-card input[type="radio"] {
    margin-right: 10px;
}

.payment-method-label {
    font-weight: 600;
    color: #1C2539;
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-method-icon {
    font-size: 24px;
    color: #20282D;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-stepper {
        flex-direction: column;
        gap: 20px;
    }
    
    .checkout-stepper::before {
        display: none;
    }
    
    .checkout-step {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .order-summary {
        position: relative;
        top: 0;
        margin-top: 30px;
    }
    
    .security-badges {
        justify-content: center;
    }
}

