/* RTL Support for Arabic Language with Minimal Design */

/* Import IBM Plex Font */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

/* Base RTL styles */
body {
    direction: rtl;
    text-align: right;
    font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #000000;
}

/* Minimal Checkout Container */
#checkoutContent {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 1200px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

/* Checkout Steps */
.basket-steps {
    background: #000000;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.step .circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.step.done .circle {
    background: #ffd700;
    border-color: #ffd700;
    color: #000000;
}

.step.current .circle {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.step .title {
    font-size: 14px;
    font-weight: 500;
}

/* Minimal Form Styling */
.shipping-section .card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    background: #ffffff;
}

.shipping-section .card-body {
    padding: 30px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-control-label {
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    text-align: right;
    direction: rtl;
    color: #000000;
}

.form-control:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    background: #ffffff;
    outline: none;
}

.form-control::placeholder {
    color: #666666;
    opacity: 0.7;
}

/* Professional Input Icons */
.form-group {
    position: relative;
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
    font-size: 18px;
    z-index: 10;
}

.form-group.has-icon .form-control {
    padding-left: 50px;
    padding-right: 16px;
}

/* Section Headers */
.shipping-method-block h3 {
    color: #000000;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
}

.shipping-method-block h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: #ffd700;
}

/* Payment Method Styling */
.form-check {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-check:hover {
    border-color: #ffd700;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.1);
}

.form-check.selected {
    border-color: #ffd700;
    background: #fffef0;
}

.form-check-input {
    margin-left: 0;
    margin-right: 15px;
}

.form-check-label {
    font-weight: 500;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Minimal Button Styling */
.btn {
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #ffd700;
    color: #000000;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
}

.btn-primary:disabled {
    background: #cccccc;
    color: #666666;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Order Summary Styling */
.shipment-order-summary .card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.card-header {
    background: #000000;
    color: #ffffff;
    border-radius: 8px 8px 0 0;
    padding: 20px 25px;
    border: none;
}

.card-header h2 {
    margin: 0;
    font-weight: 700;
    font-size: 18px;
}

.order-total-summary {
    padding: 25px;
}

.order-receipt-label {
    font-weight: 500;
    color: #000000;
    margin-bottom: 5px;
}

.shipping-total-cost,
.grand-total-sum {
    font-weight: 700;
    color: #000000;
    font-size: 16px;
}

.grand-total-sum {
    color: #ffd700;
    font-size: 20px;
}

/* Product Offer Styling */
.mobile-offer .card,
.non-mobile-offer .card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #ffffff;
}

.offer-photo {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    margin-left: 15px;
}

.offer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-name {
    font-weight: 600;
    color: #000000;
    font-size: 16px;
    margin-bottom: 5px;
}

.price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price span:first-child {
    color: #666666;
    text-decoration: line-through;
    font-size: 14px;
}

.price span:last-child {
    color: #ffd700;
    font-weight: 700;
    font-size: 18px;
}

/* Professional Checkbox Styling */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #e0e0e0;
    margin-left: 10px;
    margin-right: 0;
}

.privacy-check {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 20px;
}

.privacy-check .form-check-label {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    cursor: pointer;
}

.privacy-check .form-check-input {
    margin-top: 2px;
}

/* Payment Icons */
.payment-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.payment-icons img {
    width: 50px;
    height: 35px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    padding: 5px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.payment-icons img:hover {
    border-color: #ffd700;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

/* Loading Spinner */
.spinner__ {
    width: 18px;
    height: 18px;
    border: 2px solid #000000;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .basket-steps {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .shipping-section .card-body {
        padding: 20px;
    }
    
    .order-total-summary {
        padding: 20px;
    }
    
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Text alignment for Arabic content */
.hero__description-title,
.hero__description-text,
.question,
.main__text,
h1, h2, h3, h4, h5, h6,
p {
    direction: rtl;
    text-align: right;
}

/* Form inputs RTL support */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    text-align: right;
    direction: rtl;
    padding-right: 16px;
    padding-left: 16px;
}

/* Buttons RTL support */
.survey_button,
.btn {
    direction: rtl;
    text-align: center;
}

/* Modal content RTL */
.modal-content {
    direction: rtl;
    text-align: right;
}

/* Comments section RTL */
.comments__item__content-text {
    direction: rtl;
    text-align: right;
}

/* Header search RTL */
.serc input {
    text-align: right;
    direction: rtl;
}

/* Fix float directions for RTL */
.serc input {
    float: right !important;
}

/* Fix margins and paddings for RTL */
.col-md-4.pl-lg-0 {
    padding-right: 0 !important;
}

/* Fix form group spacing for RTL */
.form-group {
    text-align: right;
}

/* Fix checkbox and radio alignment for RTL */
.form-check {
    text-align: right;
    direction: rtl;
}

/* Fix order summary for RTL */
.order-total-summary {
    text-align: right;
    direction: rtl;
}

/* Fix shipping method list for RTL */
.shipping-method-list {
    text-align: right;
    direction: rtl;
}

/* Fix card headers for RTL */
.card-header h2,
.card-header h3 {
    text-align: right;
    direction: rtl;
}

/* Fix price display for RTL */
.price {
    text-align: right;
    direction: rtl;
}

/* Fix offer details for RTL */
.offer-details {
    text-align: right;
    direction: rtl;
}

/* Fix timeline for RTL */
.tmline {
    text-align: right;
    direction: rtl;
}

/* Fix comments section for RTL */
.comments__item__content-username {
    text-align: right;
    direction: rtl;
}

/* Fix notification items for RTL */
.notifications__item__content__header {
    text-align: right;
    direction: rtl;
}

/* Fix survey buttons alignment */
#questions .survey_button {
    text-align: center;
    background: #ffd700;
    color: #000000;
    border: 2px solid #ffd700;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#questions .survey_button:hover {
    background: #ffed4e;
    border-color: #ffed4e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Fix modal buttons */
.modal-body button {
    text-align: center;
    background: #ffd700;
    color: #000000;
    border: 2px solid #ffd700;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-body button:hover {
    background: #ffed4e;
    border-color: #ffed4e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Modal styling */
.modal-content {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background: #000000;
    color: #ffffff;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e0e0e0;
}

.modal-body {
    background: #ffffff;
    color: #000000;
}

/* Fix form validation messages for RTL */
.invalid-feedback {
    text-align: right;
    direction: rtl;
}

/* Fix progress indicators for RTL */
.progress {
    direction: ltr; /* Keep progress bars left-to-right */
}

/* Fix international phone input for RTL */
.iti {
    direction: ltr; /* Keep phone input left-to-right */
}

/* Fix payment method icons alignment */
.shipping-method-option {
    text-align: right;
    direction: rtl;
}

/* Fix order summary labels for RTL */
.order-receipt-label {
    text-align: right;
    direction: rtl;
}

/* Fix total amounts for RTL */
.text-right {
    text-align: left !important; /* Reverse for RTL */
}

/* Fix shipping total costs for RTL */
.shipping-total-cost {
    text-align: left !important; /* Reverse for RTL */
}

/* Fix grand total for RTL */
.grand-total-sum {
    text-align: left !important; /* Reverse for RTL */
} 