/* Crakers Welcome Wizard Styles */
/* Adapted from Beysos theme with Crakers color scheme */

/* ==================== MODAL BACKDROP ==================== */
.modal-backdrop.show {
    background-color: rgba(0, 0, 0, 0.6) !important;
    opacity: 1 !important;
}

/* ==================== MODAL CONTAINER ==================== */
.crakers-wizard-modal {
    z-index: 10000;
}

.crakers-wizard-modal-content {
    border-radius: 15px;
    /* Credit-card-modal style */
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.crakers-wizard-header {
    background-color: #303030 !important;
    /* Crakers black */
    color: #ffffff !important;
    padding: 20px 30px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border: none !important;
}

/* ==================== BEYSOS → CRAKERS COLOR SYSTEM ==================== */
.bg-crakers-primary {
    background-color: #f52943 !important;
    /* Crakers primary red */
    color: #fff !important;
}

.bg-crakers-red {
    background-color: #b41d40 !important;
    /* Crakers dark red */
    color: #ffffff !important;
}

.bg-crakers-dark {
    background-color: #303030 !important;
    /* Crakers black */
    color: #ffffff !important;
}

.text-crakers-primary {
    color: #f52943 !important;
    /* Crakers primary red */
}

.text-crakers-red {
    color: #b41d40 !important;
    /* Crakers dark red */
}

/* ==================== BUTTONS ==================== */
.btn-crakers-primary,
.btn-crakers-red,
.btn-crakers-outline-primary,
.btn-crakers-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
}

.btn-crakers-primary {
    background-color: #f52943;
    /* Crakers primary red */
    color: #fff;
    border: 2px solid transparent;
    border-radius: 9999px;
    /* Tam yuvarlak - Crakers style */
    padding: 12px 24px;
    transition: all 0.3s ease-in-out;
}

.btn-crakers-primary:hover,
.btn-crakers-primary:focus {
    background-color: #b41d40;
    /* Hover: dark red */
    color: #fff;
    transform: scale(1.02);
}

.btn-crakers-red {
    background-color: #b41d40;
    /* Crakers dark red */
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 12px 24px;
    transition: all 0.3s ease-in-out;
}

.btn-crakers-red:hover,
.btn-crakers-red:focus {
    background-color: #850d1e;
    /* Even darker red */
    color: #ffffff;
}

.btn-crakers-outline-primary {
    border: 2px solid #f52943;
    color: #f52943;
    background-color: transparent;
    border-radius: 9999px;
    padding: 10px 20px;
    transition: all 0.3s ease-in-out;
}

.btn-crakers-outline-primary:hover,
.btn-crakers-outline-primary:focus {
    background-color: #f52943;
    color: #fff;
}

.btn-crakers-link {
    border: none;
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
    color: #666;
    transition: color 0.3s ease;
}

.btn-crakers-link:hover {
    color: #f52943;
}

/* ==================== SERVICE CARDS (STEP 2) ==================== */
.service-card {
    border-radius: 20px !important;
    border: 10px solid #b41d40 !important;
    /* Crakers dark red border - types-of-pizza style */
    background: #fff !important;
    box-shadow: 4px 4px 5px 0 rgba(223, 205, 205, 0.5);
    transition: all 0.3s ease-in-out !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #b41d40 !important;
    background: #b41d40 !important;
    /* Hover: dark red background */
    box-shadow: 0 10px 20px rgba(180, 29, 64, 0.3);
}

/* Service card hover effects - text turns white */
.service-card:hover .card-title,
.service-card:hover .card-text {
    color: #fff !important;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1);
}

.service-card:hover .icon-wrapper i {
    /* color: #fff !important; Removed to keep original icon color */
}

.service-card .icon-wrapper {
    transition: transform 0.3s ease;
}

/* ==================== MAP SECTION ==================== */
.crakers-wizard-map-wrapper {
    height: 300px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.crakers-wizard-map-inner {
    height: 100%;
    width: 100%;
    z-index: 1;
}

.crakers-wizard-map-search-overlay {
    z-index: 1000;
}

/* ==================== WIZARD STEP ANIMATION ==================== */
.wizard-step {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== FORM ELEMENTS ==================== */
.form-select:focus,
.form-control:focus {
    border-color: #f52943;
    box-shadow: 0 0 0 0.2rem rgba(245, 41, 67, 0.25);
}

/* ==================== BRANCH SELECTION (STEP 3.5) ==================== */
.list-group-item-action:hover {
    background-color: rgba(245, 41, 67, 0.05);
    border-left: 4px solid #f52943;
}

.list-group-item-action.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== BRANCH CONFIRMATION (STEP 4) ==================== */
#branch-found-state .text-crakers-primary i {
    animation: successPulse 1.5s ease-in-out;
}

@keyframes successPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ==================== LOADING SPINNER ==================== */
.spinner-border.text-crakers-red {
    color: #f52943 !important;
    border-color: currentColor transparent transparent transparent;
}

/* ==================== ALERTS ==================== */
.alert-info {
    background-color: rgba(245, 41, 67, 0.1);
    border-color: rgba(245, 41, 67, 0.2);
    color: #850d1e;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
    color: #856404;
}

/* ==================== BADGES ==================== */
.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-danger {
    background-color: #f52943 !important;
}

/* ==================== CLOSE BUTTON ==================== */
.btn-close-white {
    filter: brightness(0) invert(1);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {

    /* Modal adjustments */
    .crakers-wizard-modal-content {
        margin: 20px;
        width: calc(100vw - 40px);
        max-width: 100%;
    }

    .crakers-wizard-header {
        padding: 15px 20px;
    }

    .crakers-wizard-header h5 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 20px !important;
    }

    /* Service cards - thinner border on mobile */
    .service-card {
        border-width: 6px !important;
    }

    /* Buttons */
    .btn-crakers-primary,
    .btn-crakers-outline-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Map */
    .crakers-wizard-map-wrapper {
        height: 250px;
    }

    /* Form */
    .form-select,
    .form-control {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .crakers-wizard-modal-content {
        margin: 10px;
        width: calc(100vw - 20px);
    }

    .service-card .card-body {
        padding: 20px !important;
    }

    .crakers-wizard-map-wrapper {
        height: 200px;
    }
}

/* ==================== ACCESSIBILITY ==================== */
.btn-crakers-primary:focus-visible,
.btn-crakers-outline-primary:focus-visible,
.form-select:focus-visible,
.form-control:focus-visible {
    outline: 2px solid #f52943;
    outline-offset: 2px;
}

/* ==================== CUSTOM SCROLLBAR (OPTIONAL) ==================== */
#saved-address-list::-webkit-scrollbar,
#branch-list-container::-webkit-scrollbar {
    width: 8px;
}

#saved-address-list::-webkit-scrollbar-track,
#branch-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#saved-address-list::-webkit-scrollbar-thumb,
#branch-list-container::-webkit-scrollbar-thumb {
    background: #b41d40;
    border-radius: 10px;
}

#saved-address-list::-webkit-scrollbar-thumb:hover,
#branch-list-container::-webkit-scrollbar-thumb:hover {
    background: #f52943;
}

/* ==================== UTILITY CLASSES ==================== */
.text-muted-crakers {
    color: #979293 !important;
    /* Crakers gray */
}

.border-crakers-primary {
    border-color: #f52943 !important;
}

.shadow-crakers {
    box-shadow: 0 2px 8px rgba(245, 41, 67, 0.15) !important;
}

/* ==================== HEADER LOGO ==================== */
.header-logo {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .header-logo {
        max-height: 90px;
    }
}

/* ==================== HEADER SERVICE CHIP ==================== */
.crakers-service-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Reduced gap */
    padding: 4px 12px;
    /* Reduced padding */
    border-radius: 50px;
    background: rgba(245, 41, 67, 0.1);
    border: 2px solid rgba(245, 41, 67, 0.3);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    max-width: 280px;
    height: 48px;
    /* Fixed height to match buttons */
    flex-shrink: 1;
    min-width: 0;
}

.crakers-service-chip:hover {
    background: rgba(245, 41, 67, 0.2);
    border-color: rgba(245, 41, 67, 0.5);
    transform: translateY(-1px);
    /* Slight adjustment */
}

.crakers-service-chip .chip-icon-wrapper {
    width: 32px;
    /* Reduced icon size */
    height: 32px;
    background: #f52943;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(245, 41, 67, 0.4);
    font-size: 0.9rem;
    /* Adjust icon font size */
}

.crakers-service-chip .chip-content {
    display: flex;
    flex-direction: column;
    padding-right: 5px;
    /* Reduced padding */
    overflow: hidden;
    min-width: 0;
    /* Fix for flex child overflow */
    justify-content: center;
}

.crakers-service-chip .chip-branch-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.crakers-service-chip .chip-service-type {
    font-size: 0.7rem;
    opacity: 0.85;
    color: #f52943;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}