:root {
    --primary-bg: #1a1a1a;
    --secondary-bg: #2d2d2d;
    --card-bg: #333333;
    --accent-color: #3498DB;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #404040;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --input-bg: #404040;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--text-color);
    line-height: 1.6;
}

.logo-container {
    position: relative;
    text-align: center;
    margin-top: -50px;
    margin-bottom: 20px;
}

.logo-container img {
    max-width: 100px;
    background: var(--card-bg);
    padding: 2px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.trust-badges {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 15px 0;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    margin: 0 10px 10px;
    font-size: 0.85rem;
    background: var(--secondary-bg);
    padding: 8px 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.badge-item:hover {
    transform: translateY(-2px);
}

.badge-item i {
    font-size: 1.2rem;
    margin-right: 8px;
    color: var(--accent-color);
}

.card-header {
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0 !important;
    padding: 1.5rem;
}

.form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.form-select {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--input-bg);
    border-color: var(--accent-color);
    color: var(--text-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.btn-primary {
    background-color: var(--accent-color);
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980B9;
    transform: translateY(-2px);
}

.section-title {
    color: var(--text-color);
    font-weight: 600;
    margin: 2rem 0 1rem;
}

/* Adjusted card-input to match other sections */
.card-input {
    background: var(--secondary-bg);
    border-radius: 8px;
    padding: 0;
}

.order-summary {
    background: var(--secondary-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.payment-icons {
    font-size: 2rem;
    color: var(--text-muted);
    margin: 1rem 0;
}

.payment-icons i {
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.payment-icons i:hover {
    color: var(--text-color);
}

.upsell-container {
    background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%);
    color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--card-shadow);
}

.form-section {
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.product-card h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

footer {
    background: var(--primary-bg);
    color: var(--text-muted);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.toast {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    color: var(--text-color);
}

.toast-header {
    background: var(--card-bg);
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.form-check-input {
    background-color: var(--input-bg);
    border-color: var(--border-color);
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Glow effects */
.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.5);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
}

/* Feature list styling */
.feature-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}



/* Exit Intent Modal Styles */
.exit-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000000;
    display: none;
    justify-content: center;
    align-items: center;
}

.exit-modal {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    max-width: 500px;
    width: 90%;
    padding: 30px;
    position: relative;
    animation: modalZoomIn 0.3s ease;
}

.exit-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.exit-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.exit-modal-body {
    margin-bottom: 20px;
}

.exit-modal-discount {
    font-size: 32px;
    font-weight: bold;
    color: var(--success-color);
    text-align: center;
    margin: 20px 0;
}

.exit-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #219653;
    transform: translateY(-2px);
}

.btn-decline {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    cursor: pointer;
}

@keyframes modalZoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Toast notifications - desktop */
.toast-container {
    position: fixed;
    bottom: 20px; /* Original desktop position */
    left: 20px;
    z-index: 1050;
    max-width: 350px;
}

.custom-toast {
    background: var(--secondary-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-left: 4px solid #E74C3C;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: var(--card-shadow);
    animation: slideIn 0.5s ease, fadeOut 0.5s ease 4.5s forwards;
    max-width: 350px;
}

.custom-toast-body {
    width: 100%;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        display: none;
    }
}

.wizard-container {
    width: 100%;
    margin: 15px 0 5px;
    overflow: hidden;
}

.wizard-steps {
    display: flex;
    width: 100%;
}

.wizard-step {
    flex: 1;
    position: relative;
    text-align: center;
}

.step-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    color: #fff;
    position: relative;
    height: 40px;
    padding: 0 10px 0 20px;
    white-space: nowrap;
}

/* Create the arrow shape */
.step-content:after {
    content: "";
    position: absolute;
    top: 0;
    right: -20px;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 20px solid #333;
    z-index: 2;
}

/* Ensure the first step has a clean left edge */
.wizard-step:first-child .step-content {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

/* Last step doesn't need an arrow */
.wizard-step:last-child .step-content:after {
    display: none;
}

/* Active step styling */
.wizard-step.active .step-content {
    background-color: #3498DB;
}

.wizard-step.active .step-content:after {
    border-left-color: #3498DB;
}

.step-number {
    font-weight: bold;
    margin-right: 8px;
    font-size: 1.1rem;
}

.step-label {
    font-weight: 600;
    font-size: 0.8rem;
}

/* Overlap the steps for the arrow effect */
.wizard-step:not(:first-child) .step-content {
    margin-left: -20px;
}

/* Add z-index for proper layering */
.wizard-step:nth-child(1) {
    z-index: 30;
}

.wizard-step:nth-child(2) {
    z-index: 20;
}

.wizard-step:nth-child(3) {
    z-index: 10;
}

/* Countdown Box Styles - Updated */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    width: 100px; /* Increased width for all boxes */
    flex: 0 0 100px; /* Prevent resizing */
    text-align: center;
    box-shadow: var(--card-shadow);
}

.countdown-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.2;
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 5px;
}

/* Image text wrap fix */
.product-text-wrap {
    overflow: hidden;
}

.product-text-wrap img {
    float: left;
    margin-right: 15px;
    margin-bottom: 10px;
}

/* Feature list styling */
.feature-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.feature-list li:before {
    content: "\f058"; /* Font Awesome check-circle icon */
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--success-color); /* Using the success color variable */
}

/* Testimonial Carousel Styles - Spacing Fix */
.testimonials-carousel {
    position: relative;
    margin: 0; /* Reduced from 2rem 0 */
    overflow: visible;
    padding-bottom: 10px; /* Reduced from 15px */
}

.testimonials-container {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 100%;
    transition: opacity 0.3s ease;
    padding: 0 10px 10px; /* Reduced bottom padding */
}

/* Updated testimonial card styling to match countdown boxes */
.testimonial-card .card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    transition: none;
    transform: none;
}

.testimonial-card .card:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* Testimonial specific styles */
.testimonial-card .profile-photo {
    margin-right: 15px !important; /* Force override Bootstrap classes */
    min-width: 40px; /* Prevent image from shrinking */
}

.testimonial-card .profile-info {
    padding-left: 5px; /* Add extra padding to move text away from image */
}

/* Container to hold testimonials section with proper spacing */
.testimonials-section {
    overflow: hidden;
    margin: 1rem 0; /* Reduced from 2rem 0 */
    padding: 0 0 0.5rem; /* Reduced padding */
}

/* Adjust heading spacing */
.testimonials-heading {
    margin-bottom: 1rem; /* Reduced from mb-4 (1.5rem) */
}

@media (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 50%;
    }
}

@media (min-width: 992px) {
    .testimonial-card {
        flex: 0 0 33.333%;
    }
}

/* Make more compact on mobile */
@media (max-width: 576px) {
    .step-content {
        height: 34px;
        padding: 0 8px 0 16px;
    }

    .step-content:after {
        right: -16px;
        border-top: 17px solid transparent;
        border-bottom: 17px solid transparent;
        border-left: 16px solid #333;
    }

    .wizard-step.active .step-content:after {
        border-left-color: #3498DB;
    }

    .wizard-step:not(:first-child) .step-content {
        margin-left: -16px;
    }

    .step-number {
        font-size: 0.9rem;
        margin-right: 5px;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .badge-item {
        margin: 0 10px 10px;
    }

    /* Improve payment section on mobile */
    .form-section {
        padding: 1.5rem;
    }

    .card-input .row {
        margin: 0 -5px;
    }

    .card-input .col-4 {
        padding: 0 5px;
    }

    .card-input select.form-control {
        padding-left: 8px;
        padding-right: 20px;
        font-size: 0.9rem;
    }

    .card-input input.form-control[name="CVV"] {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 0.9rem;
    }
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.chat-button {
    background: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.chat-button i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.chat-container {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    height: 450px;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
}

.chat-header {
    background: var(--accent-color);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h5 {
    margin: 0;
    font-weight: 600;
}

.chat-header button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.chat-header button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 6px;
}

.message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.4;
    position: relative;
    font-size: 0.95rem;
}

.message.user {
    background: var(--accent-color);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message.support {
    background: var(--secondary-bg);
    color: var(--text-color);
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.message.typing {
    display: flex;
    align-items: center;
    padding: 12px 18px;
}

.message.typing span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--text-muted);
    border-radius: 50%;
    margin: 0 2px;
    opacity: 0.8;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.message.typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.message.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.chat-input {
    display: flex;
    border-top: 1px solid var(--border-color);
    padding: 12px;
    background: var(--secondary-bg);
    align-items: center;
}

.chat-input input {
    flex: 1;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.2s ease;
    height: 44px;
}

.chat-input input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
}

.chat-input button {
    background: var(--accent-color);
    color: white;
    border: none;
    min-width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 0;
    flex-shrink: 0;
}

.chat-input button:hover {
    background-color: #2980B9;
    transform: translateY(-2px);
}

.chat-input button i {
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .chat-container {
        width: 300px;
        height: 400px;
        bottom: 70px;
    }

    .chat-input {
        padding: 10px;
    }

    .chat-input button {
        width: 40px;
        height: 40px;
    }
}

/* Style for discount code message */
.message.discount-code {
    background: linear-gradient(135deg, #2C3E50 0%, #3498DB 100%);
    padding: 15px;
    text-align: center;
}

.message.discount-code .code {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFF;
    margin: 10px 0 5px;
    letter-spacing: 1px;
}

/* Mobile adjustments for chat button and toast notifications */
@media (max-width: 767px) {
    /* Make chat button smaller and position it better */
    .chat-widget {
        bottom: 10px;
        right: 10px;
    }

    .chat-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .chat-button i {
        font-size: 0.9rem;
    }

    /* Make toast notifications align with chat button */
    .toast-container {
        left: 10px;
        bottom: 10px; /* Aligned with chat widget button */
        max-width: 250px;
    }

    .custom-toast {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    /* Add padding to footer for mobile */
    footer {
        padding-bottom: 80px; /* Extra padding to scroll past the fixed elements */
    }

    /* Adjust chat container position for mobile */
    .chat-container {
        bottom: 55px;
        height: 350px; /* Slightly smaller height */
        width: 280px; /* Slightly smaller width */
    }
}

/* Specific to very small screens */
@media (max-width: 400px) {
    .toast-container {
        max-width: 220px;
    }

    .chat-button {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Add this to your checkout-styles.css file */

/* Make trust badges fit on one row for mobile */
@media (max-width: 767px) {
    .trust-badges {
        display: flex;
        justify-content: center;
        flex-wrap: nowrap; /* Prevent wrapping */
    }

    .badge-item {
        padding: 6px 8px; /* Smaller padding */
        margin: 0 4px 10px; /* Reduced horizontal margins */
        font-size: 0.7rem; /* Smaller text */
        white-space: nowrap; /* Prevent text wrapping */
    }

    .badge-item i {
        font-size: 0.9rem; /* Smaller icon */
        margin-right: 4px; /* Less space after icon */
    }
}

/* Extra small screens need even more reduction */
@media (max-width: 374px) {
    .badge-item {
        padding: 4px 6px;
        margin: 0 2px 10px;
        font-size: 0.65rem;
    }

    .badge-item i {
        font-size: 0.8rem;
        margin-right: 3px;
    }
}

/* Coupon message container - adjusted positioning */
.coupon-message-container {
    min-height: 20px; /* Reduced height */
    padding: 0;
}

/* Common styles for both messages */
.coupon-error, .coupon-success {
    font-size: 0.8rem; /* Slightly smaller text */
    line-height: 1.2; /* Tighter line height */
    word-break: normal;
    overflow-wrap: break-word;
    padding-top: 0; /* Remove top padding */
}

/* Specific colors */
.coupon-error {
    color: var(--danger-color); /* Red for errors */
}

.coupon-success {
    color: var(--success-color); /* Green for success */
}
