/* FoneWorld Repair Booking - Premium Modern UI */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --fw-red: #d62828;
    --fw-red-hover: #b91c1c;
    --fw-red-light: rgba(214, 40, 40, 0.08);
    --fw-blue-soft: #F1F5F9;
    --fw-red-gradient: linear-gradient(135deg, #d62828 0%, #e53935 100%);
    --fw-text-dark: #1E293B;
    --fw-text-gray: #64748B;
    --fw-border: #E2E8F0;
    --fw-bg-light: #F8FAFC;
    --fw-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --fw-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --fw-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --fw-shadow-hover: 0 12px 48px rgba(214, 40, 40, 0.15);
    --fw-radius: 16px;
    --fw-radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

.fw-booking-wrapper-new {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 1200px;
    margin: 40px auto;
    color: var(--fw-text-dark);
    background: #fff;
    padding: 40px;
    border-radius: var(--fw-radius);
    box-shadow: var(--fw-shadow-md);
    line-height: 1.6;
}

/* Typography */
.fw-main-title {
    font-size: 36px;
    font-weight: 800;
    background: var(--fw-red-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -0.5px;
}

.fw-subtitle {
    font-size: 15px;
    color: var(--fw-text-gray);
    max-width: 800px;
    margin: -20px auto 40px;
    text-align: center;
    line-height: 1.7;
}

/* Progress Bar */
.fw-progress-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 60px;
}

.fw-progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--fw-red) 0%, var(--fw-blue-soft) 0%);
    z-index: 1;
    transform: translateY(-50%);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fw-progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.fw-prog-step {
    width: 24px;
    height: 24px;
    background: #fff;
    border: 4px solid var(--fw-blue-soft);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.fw-prog-step.active {
    background: var(--fw-red);
    border-color: var(--fw-red);
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(214, 40, 40, 0.2);
}

.fw-prog-step.completed {
    background: var(--fw-red);
    border-color: var(--fw-red);
    transform: scale(1.1);
}

.fw-back-action {
    position: absolute;
    top: 45px;
    left: -20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--fw-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fw-back-action:hover {
    opacity: 0.7;
    transform: translateX(-3px);
}

/* Grid Selection (Brands/Models) - MODERN REDESIGN */
.fw-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.fw-item-card-new {
    position: relative;
    cursor: pointer;
    background: #fff;
    padding: 32px 24px;
    border-radius: var(--fw-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--fw-border);
    box-shadow: var(--fw-shadow-sm);
}

.fw-item-card-new:hover {
    transform: translateY(-6px);
    box-shadow: var(--fw-shadow-hover);
    border-color: var(--fw-red);
}

/* Ornament removed as requested */
.fw-item-bg-cross {
    display: none;
}

.fw-item-card-new img {
    position: relative;
    z-index: 5;
    max-width: 85%;
    max-height: 160px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.fw-item-card-new:hover img {
    transform: scale(1.05);
}

.fw-item-card-new h3 {
    position: relative;
    z-index: 10;
    font-size: 16px;
    font-weight: 700;
    color: var(--fw-text-dark);
    margin: 0;
    text-align: center;
    letter-spacing: -0.2px;
}

/* Trustpilot Badge */
.fw-trustpilot-badge {
    text-align: center;
    margin: 20px 0;
    font-size: 14px;
    color: var(--fw-text-gray);
}

.fw-star {
    color: #00B67A;
    font-size: 18px;
}

/* Tabs UI - REPAIR TYPE ICONS */
.fw-issues-container {
    margin-top: 40px;
}

.fw-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.fw-tab-item {
    width: 120px;
    height: 140px;
    border: 2px solid var(--fw-border);
    border-radius: var(--fw-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--fw-shadow-sm);
}

.fw-tab-item:hover {
    border-color: var(--fw-red);
    transform: translateY(-4px);
    box-shadow: var(--fw-shadow-md);
}

.fw-tab-item.active {
    border-color: var(--fw-red);
    border-width: 3px;
    background: var(--fw-red-light);
    box-shadow: 0 8px 24px rgba(214, 40, 40, 0.1);
}

.fw-tab-item.active::after {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 50%;
    margin-left: -12px;
    border-width: 12px;
    border-style: solid;
    border-color: var(--fw-red) transparent transparent transparent;
}

.fw-tab-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--fw-text-dark);
}

.fw-tab-icon-svg {
    width: 100px;
    height: 100px;
    margin-bottom: 5px;
}

.fw-tab-icon-svg svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.fw-tab-icon-img {
    width: 100px;
    height: 100px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fw-tab-icon-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fw-tab-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--fw-text-dark);
    text-align: center;
    line-height: 1.2;
    padding: 0 5px;
}

/* Issue Detail Card - PREMIUM TWO-COLUMN LAYOUT */
.fw-issue-active-card {
    border: 3px solid var(--fw-red);
    border-radius: var(--fw-radius);
    padding: 48px;
    text-align: left;
    margin: 40px auto;
    background: #fff;
    display: block !important;
    box-shadow: var(--fw-shadow-lg);
}

.fw-issue-info-wrap {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.fw-issue-visual {
    flex: 1;
    text-align: center;
    padding-right: 48px;
    border-right: 2px solid var(--fw-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fw-issue-icon-big {
    width: 220px;
    height: 220px;
    margin-bottom: 24px;
    background: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: var(--fw-red);
    box-shadow: none;
}

.fw-issue-icon-big svg {
    width: 150px;
    height: 150px;
    fill: currentColor;
    stroke: currentColor;
}

.fw-issue-icon-big img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fw-issue-title-full {
    font-size: 24px;
    font-weight: 800;
    color: var(--fw-text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.fw-issue-price-tag {
    font-size: 42px;
    font-weight: 800;
    background: var(--fw-red-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 28px;
    letter-spacing: -1px;
}

.fw-issue-meta {
    flex: 1.5;
}

.fw-issue-meta h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--fw-text-dark);
    margin-bottom: 12px;
}

.fw-issue-desc-text {
    font-size: 14px;
    color: var(--fw-text-gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

.fw-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--fw-border);
}

.fw-meta-row .label {
    font-size: 14px;
    font-weight: 600;
    color: var(--fw-text-dark);
}

.fw-meta-row .value {
    font-size: 14px;
    font-weight: 700;
}

.fw-meta-row .value.pink {
    color: var(--fw-red);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fw-arrow-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--fw-red);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
}

.fw-meta-small {
    font-size: 12px;
    color: var(--fw-text-gray);
    margin-top: 16px;
    line-height: 1.6;
}

/* Form Elements - PREMIUM STYLE */
.fw-form-group {
    margin-bottom: 24px;
}

.fw-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--fw-text-dark);
    letter-spacing: -0.2px;
}

.fw-form-group input[type="text"],
.fw-form-group input[type="email"],
.fw-form-group select,
.fw-form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--fw-border);
    border-radius: var(--fw-radius-sm);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s ease;
    background: var(--fw-bg-light);
    color: var(--fw-text-dark);
}

.fw-form-group input:focus,
.fw-form-group textarea:focus,
.fw-form-group select:focus {
    outline: none;
    border-color: var(--fw-red);
    box-shadow: 0 0 0 4px rgba(214, 40, 40, 0.1);
    background: #fff;
}

.fw-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Buttons - PREMIUM GRADIENT STYLE */
.fw-btn-primary {
    background: var(--fw-red-gradient) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--fw-radius-sm) !important;
    padding: 16px 40px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: none !important;
    height: auto !important;
    display: inline-block !important;
    box-shadow: 0 4px 16px rgba(214, 40, 40, 0.2) !important;
    letter-spacing: 0.3px !important;
}

.fw-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(214, 40, 40, 0.3) !important;
}

.fw-btn-primary:active {
    transform: translateY(0) !important;
}

/* Service Type Cards */
.fw-service-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 40px 0;
}

.fw-service-card {
    width: 240px;
    padding: 40px 32px;
    border: 3px solid var(--fw-border);
    border-radius: var(--fw-radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    box-shadow: var(--fw-shadow-sm);
}

.fw-service-card:hover {
    border-color: var(--fw-red);
    transform: translateY(-6px);
    box-shadow: var(--fw-shadow-md);
}

.fw-service-card.active {
    border-color: var(--fw-red);
    background: var(--fw-red-light);
    box-shadow: 0 8px 32px rgba(214, 40, 40, 0.1);
}

.fw-service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--fw-red-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.fw-service-icon svg {
    width: 32px;
    height: 32px;
}

.fw-service-card strong {
    display: block;
    margin: 15px 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--fw-text-dark);
}

.fw-service-card p {
    font-size: 13px;
    color: var(--fw-text-gray);
    margin: 0;
    line-height: 1.6;
}

.fw-service-footer {
    text-align: center;
    margin-top: 32px;
}

.fw-service-footer a {
    color: var(--fw-red);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.fw-service-footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Loading Spinner */
.fw-loading-spinner {
    grid-column: 1 / -1;
    padding: 60px;
    font-weight: 600;
    text-align: center;
    color: var(--fw-text-gray);
    font-size: 16px;
}

/* Success Message */
.fw-confirmation {
    padding: 60px 40px;
    text-align: center;
}

.fw-success-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #d62828 0%, #b91c1c 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(214, 40, 40, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fw-step {
    animation: fadeInUp 0.4s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fw-booking-wrapper-new {
        padding: 24px;
        margin: 20px;
    }

    .fw-main-title {
        font-size: 28px;
    }

    .fw-selection-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .fw-item-card-new {
        min-height: 220px;
        padding: 24px 16px;
    }

    .fw-tabs {
        gap: 12px;
    }

    .fw-tab-item {
        width: 100px;
        height: 100px;
    }

    .fw-issue-info-wrap {
        flex-direction: column;
        gap: 32px;
    }

    .fw-issue-visual {
        border-right: none;
        padding-right: 0;
        padding-bottom: 32px;
        border-bottom: 2px solid var(--fw-border);
    }

    .fw-issue-active-card {
        padding: 32px 24px;
    }

    .fw-service-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .fw-service-card {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .fw-selection-grid {
        grid-template-columns: 1fr;
    }

    .fw-issue-price-tag {
        font-size: 36px;
    }

    .fw-back-action {
        left: 0;
        font-size: 11px;
    }
}

/* Map-Based Store Selection Step 6 */
.fw-map-container-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    margin-top: 20px;
}

.fw-stores-map {
    flex: 1.5;
    min-height: 400px;
    height: 400px;
    border-radius: var(--fw-radius-sm);
    overflow: hidden;
    box-shadow: var(--fw-shadow-md);
    background: #fff;
    border: 1px solid var(--fw-border);
}

.fw-stores-list-wrap {
    flex: 1;
    background: #fff;
    border-radius: var(--fw-radius-sm);
    box-shadow: var(--fw-shadow-md);
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--fw-border);
}

.fw-store-list-ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fw-store-item-new {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--fw-border);
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.fw-store-item-new:last-child {
    border-bottom: none;
}

.fw-store-item-new:hover,
.fw-store-item-new.active {
    background: var(--fw-bg-light);
}

.fw-store-item-new.active {
    border-left: 4px solid var(--fw-red);
}

.fw-store-icon-box {
    width: 36px;
    height: 36px;
    background: var(--fw-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(214, 40, 40, 0.1);
}

.fw-store-info-box {
    flex: 1;
}

.fw-store-info-box .store-name {
    font-weight: 700;
    color: var(--fw-text-dark);
    font-size: 15px;
    margin-bottom: 4px;
}

.fw-store-info-box .store-desc {
    color: var(--fw-text-gray);
    font-size: 12px;
    line-height: 1.5;
}

.fw-store-search-wrap {
    margin-bottom: 30px;
    text-align: center;
}

.fw-store-search-wrap label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--fw-text-dark);
}

.fw-store-search-wrap input {
    padding: 12px 20px;
    border-radius: var(--fw-radius-sm);
    border: 2px solid var(--fw-border);
    width: 320px;
    max-width: 100%;
    font-size: 14px;
    transition: all 0.2s;
    background: var(--fw-bg-light);
}

.fw-store-search-wrap input:focus {
    border-color: var(--fw-red);
    outline: none;
    box-shadow: 0 0 0 4px rgba(214, 40, 40, 0.1);
    background: #fff;
}

/* User location marker styling */
.user-location-marker {
    background: #007bff;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}

@media (max-width: 900px) {
    .fw-map-container-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .fw-stores-map,
    .fw-stores-list-wrap {
        min-width: 0;
        max-width: 100%;
    }

    .fw-stores-list-wrap {
        margin-top: 10px;
        max-height: 300px;
    }
}