/* ===================================================================
   Home Service Center - Luxury & Modern Mobile-First Bengali Stylesheet
   Palette: Pure White, Soft Mint/Teal (#0f766e, #0d9488, #14b8a6, #f0fdfa),
   Subtle Gray (#f8fafc, #f1f5f9, #e2e8f0)
   Typography: Hind Siliguri + Plus Jakarta Sans
   =================================================================== */

:root {
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --primary-light: #14b8a6;
    --primary-soft: #f0fdfa;
    --primary-border: #ccfbf1;
    --primary-glow: rgba(13, 148, 136, 0.16);
    
    --accent: #10b981;
    --accent-soft: #ecfdf5;
    --accent-border: #a7f3d0;

    --telegram-color: #0088cc;
    --telegram-bg: #e6f6fe;
    
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    
    --border-subtle: #e2e8f0;
    --border-focus: #0d9488;
    
    --shadow-subtle: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-card: 0 20px 40px -15px rgba(15, 23, 42, 0.05), 0 0 1px rgba(15, 23, 42, 0.08);
    --shadow-float: 0 12px 30px -8px rgba(13, 148, 136, 0.22);
    
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Hind Siliguri', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Visual Accents */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob-1 {
    position: absolute;
    top: -150px;
    right: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, rgba(240, 253, 250, 0) 70%);
    border-radius: 50%;
    filter: blur(50px);
}

.blob-2 {
    position: absolute;
    bottom: 5%;
    left: -120px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.09) 0%, rgba(236, 253, 245, 0) 70%);
    border-radius: 50%;
    filter: blur(50px);
}

/* Container */
.app-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 24px 16px 40px 16px;
}

/* Header */
.app-header {
    text-align: center;
    margin-bottom: 20px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
    color: var(--primary-hover);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.brand-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 6px 16px var(--primary-glow);
}

.brand-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.brand-headline {
    font-size: 1rem;
    color: var(--primary-hover);
    font-weight: 700;
    margin-top: 6px;
    line-height: 1.45;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Telegram Support Bar */
.telegram-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #bae6fd;
    border-radius: var(--radius-md);
    padding: 10px 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-subtle);
}

.telegram-label {
    font-size: 0.86rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--telegram-color);
    color: #ffffff;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 136, 204, 0.25);
}

.telegram-btn:hover {
    background: #0077b5;
    transform: translateY(-1px);
}

/* Card */
.booking-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 26px 22px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
}

/* Step Progress Indicator */
.step-progress-wrapper {
    margin-bottom: 24px;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 8px;
}

.step-indicators::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 12%;
    right: 12%;
    height: 3px;
    background: var(--bg-subtle);
    z-index: 0;
    border-radius: var(--radius-full);
}

.step-progress-bar-fill {
    position: absolute;
    top: 18px;
    left: 12%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    z-index: 0;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    border-radius: var(--radius-full);
}

.step-node {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 32%;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.92rem;
    transition: var(--transition);
    box-shadow: var(--shadow-subtle);
}

.step-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s ease;
    text-align: center;
}

.step-node.active .step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 0 4px var(--primary-soft), 0 6px 14px var(--primary-glow);
}

.step-node.active .step-label {
    color: var(--primary-hover);
}

.step-node.completed .step-circle {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
}

/* Step Form Content */
.step-pane {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.step-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--bg-subtle);
    padding-bottom: 12px;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Form Groups & Inputs */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.form-label .required {
    color: #ef4444;
    margin-left: 2px;
}

.input-wrapper {
    position: relative;
}

.input-icon-svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-subtle);
    pointer-events: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 10px 14px 10px 42px;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-heading);
    background: #ffffff;
    transition: var(--transition);
}

.form-input.no-icon {
    padding-left: 14px;
}

.form-textarea {
    width: 100%;
    min-height: 85px;
    padding: 12px 14px;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text-heading);
    background: #ffffff;
    resize: vertical;
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3.5px var(--primary-soft);
}

.input-wrapper:focus-within .input-icon-svg {
    color: var(--primary);
}

/* Provider Selection Cards (তরুণ ও তরুণী) */
.provider-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.provider-card-input {
    display: none;
}

.provider-card {
    cursor: pointer;
    background: #ffffff;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 14px 10px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    user-select: none;
    box-shadow: var(--shadow-subtle);
}

.provider-avatar-frame {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    padding: 3px;
    background: #ffffff;
    border: 2px solid var(--border-subtle);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.provider-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.provider-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.3;
}

.provider-subtitle {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.provider-check-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-subtle);
    color: var(--text-muted);
    transition: var(--transition);
}

.provider-card-input:checked + .provider-card {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 8px 24px var(--primary-glow);
    transform: translateY(-2px);
}

.provider-card-input:checked + .provider-card .provider-avatar-frame {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.provider-card-input:checked + .provider-card .provider-check-pill {
    background: var(--primary);
    color: #ffffff;
}

/* GPS Button */
.gps-btn-wrap {
    margin-bottom: 12px;
}

.gps-btn {
    width: 100%;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-soft);
    border: 1.5px dashed var(--primary);
    border-radius: var(--radius-md);
    color: var(--primary-hover);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.gps-btn:hover, .gps-btn:active {
    background: #ccfbf1;
    border-color: var(--primary-hover);
}

.gps-btn.loading {
    opacity: 0.8;
    pointer-events: none;
}

.gps-status-badge {
    display: none;
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: #065f46;
    align-items: center;
    gap: 6px;
}

.gps-status-badge.show {
    display: flex;
}

/* Age Quick Chips */
.quick-chips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.chip-input {
    display: none;
}

.chip-label {
    display: block;
    text-align: center;
    padding: 7px 4px;
    background: var(--bg-subtle);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    transition: var(--transition);
}

.chip-input:checked + .chip-label {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary-hover);
    font-weight: 700;
}

/* Services Grid (Step 3) */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 8px;
}

.service-card-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #ffffff;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.service-card-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card-icon-svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-card-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-heading);
}

.service-card-check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: var(--transition);
    flex-shrink: 0;
}

.service-checkbox {
    display: none;
}

.service-checkbox:checked + .service-card-label {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.service-checkbox:checked + .service-card-label .service-card-check {
    background: var(--primary);
    border-color: var(--primary);
}

.service-checkbox:checked + .service-card-label .service-card-check::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

/* Special VIP Service Highlight Card */
.service-item-special .service-card-label {
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
    border: 2px solid #99f6e4;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.1);
    position: relative;
    overflow: hidden;
}

.service-item-special .service-card-icon-svg {
    color: #f59e0b;
}

.special-service-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-bottom-left-radius: 8px;
    letter-spacing: 0.5px;
}

/* UNIQUE & EYE-CATCHING PROVIDER AGE SELECTION */
.provider-age-box {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    border: 1.8px solid #99f6e4;
    border-radius: var(--radius-lg);
    padding: 16px 14px;
    margin-top: 10px;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.08);
}

.provider-age-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.provider-age-header-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--primary-hover);
}

.provider-age-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.age-option-input {
    display: none;
}

.age-option-card {
    cursor: pointer;
    background: #ffffff;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 8px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.age-option-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-heading);
}

.age-option-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.age-option-input:checked + .age-option-card {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 4px 12px var(--primary-glow);
    transform: scale(1.02);
}

.age-option-input:checked + .age-option-card .age-option-title {
    color: var(--primary-hover);
}

/* Time Slots */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.time-slot-input {
    display: none;
}

.time-slot-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    background: #ffffff;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-heading);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.time-slot-input:checked + .time-slot-label {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary-hover);
    font-weight: 700;
}

/* Action Buttons */
.step-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    padding: 13px 20px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    user-select: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    flex: 1;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--bg-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    padding: 13px 18px;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: var(--text-heading);
}

/* Premium Confirmation Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 22px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.success-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-soft);
    color: #065f46;
    border: 1px solid var(--accent-border);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.success-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #d1fae5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 12px auto;
    box-shadow: 0 0 0 8px #ecfdf5;
}

.success-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.success-message-banner {
    background: #f0fdf4;
    border-left: 3.5px solid #10b981;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #065f46;
    text-align: center;
    margin: 14px 0 16px 0;
    line-height: 1.45;
}

.request-id-badge {
    background: var(--primary-soft);
    border: 1.5px dashed var(--primary-border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    text-align: center;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.request-id-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.request-id-code {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-hover);
    letter-spacing: 0.8px;
    font-family: monospace;
}

.receipt-details {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 20px;
    font-size: 0.86rem;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid #f1f5f9;
}

.receipt-row:last-child {
    border-bottom: none;
}

.receipt-label {
    color: var(--text-muted);
    font-weight: 500;
}

.receipt-value {
    font-weight: 600;
    color: var(--text-heading);
    text-align: right;
    max-width: 65%;
}

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

.btn-telegram-modal {
    background: var(--telegram-color);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 136, 204, 0.3);
}

.btn-telegram-modal:hover {
    background: #0077b5;
}

/* Minimal Clean Footer */
.app-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.8rem;
    color: var(--text-subtle);
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .app-container {
        padding: 16px 12px 30px 12px;
    }
    .booking-card {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }
    .provider-cards-grid {
        gap: 8px;
    }
    .provider-avatar-frame {
        width: 82px;
        height: 82px;
    }
}
