﻿* {
    font-family: Arial
}

:root {
    --Outfit: "Outfit", sans-serif;
}

/* Service Selection Card & Toggle Group Styles */
.ui-toggle-group {
    display: flex;
    background-color: #F3F4F6;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
    width: fit-content;
}

.ui-toggle-option {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.ui-toggle-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ui-toggle-label {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #4B5563;
    transition: all 0.2s ease;
    background-color: transparent;
}

.ui-toggle-option input:checked+.ui-toggle-label {
    background-color: #FFFFFF;
    color: #B12F9C;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.service-selection-card {
    display: block;
    cursor: pointer;
    position: relative;
}

.service-selection-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-card-content {
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
    gap: 16px;
    transition: all 0.2s ease;
}

.service-selection-card input:checked+.service-card-content {
    border-color: #B12F9C;
    background-color: #FDF4FF;
}

.icon-circle {
    width: 48px;
    height: 48px;
    background-color: #F3F4F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6B7280;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.service-selection-card input:checked+.service-card-content .icon-circle {
    background-color: #B12F9C;
    color: #FFFFFF;
}

.text-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-weight: 700;
    color: #1F2937;
    font-size: 16px;
    margin-bottom: 2px;
}

.service-selection-card input:checked+.service-card-content .service-title {
    color: #B12F9C;
}

.service-desc {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.4;
}

.check-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #D1D5DC;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.service-selection-card input:checked+.service-card-content .check-circle {
    background-color: #B12F9C;
    border-color: #B12F9C;
    color: #FFFFFF;
    font-size: 12px;
}

/* Small variation for sub-options */
.small-card .service-card-content {
    padding: 10px;
    border-radius: 8px;
    border-width: 1px;
}

.check-square {
    width: 18px;
    height: 18px;
    border: 2px solid #D1D5DC;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.service-selection-card input:checked+.service-card-content .check-square {
    background-color: #B12F9C;
    border-color: #B12F9C;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.tab-pane.active {
    animation: fadeInUp 0.5s ease-out;
}

.tab-pane {
    overflow-x: hidden;
    /* Prevent horizontal scroll from negative margins */
}

/* Base Styles */
/* Base Styles */
body {
    background-color: #F3F4F6;
    /* Lighter, more neutral background */
    color: #1F2937;
    font-family: var(--Outfit);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--Outfit);
    font-weight: 700;
    color: #111827;
}

input,
button,
select,
textarea,
optgroup {
    font-family: inherit;
}

header {
    background: linear-gradient(135deg, #B12F9C 0%, #47003B 100%);
    text-align: center;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-family: var(--Outfit);
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0px;
    padding: 12px 24px;
    transition: all 0.2s ease;
}

.btn-previous,
.btn-previous:focus,
.btn-previous:hover,
.btn-previous:active {
    background-color: #FFFFFF !important;
    border: 1px solid #D1D5DC !important;
    color: #374151 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-previous:hover {
    background-color: #F9FAFB !important;
    border-color: #9CA3AF !important;
    transform: translateY(-1px);
}

.btn-next,
.btn-next:focus,
.btn-next:hover,
.btn-next:active {
    background: linear-gradient(135deg, #B12F9C 0%, #D4183D 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 6px rgba(177, 47, 156, 0.2);
}

.btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(177, 47, 156, 0.3);
}

.btn:active {
    transform: translateY(0);
}

footer {
    background: linear-gradient(135deg, #B12F9C 0%, #47003B 100%);
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Styling - Glassmorphism-lite / Premium Clean */
.card {
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    background-color: #FFFFFF;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-body {
    padding: 2.5rem;
}

/* Nav Pills / Stepper Styling */
.nav-pills {
    position: relative;
    border-bottom: none;
    gap: 1rem;
    margin-bottom: 3rem !important;
    /* Increased spacing */
}

/* Connector Line (Desktop) */
@media (min-width: 768px) {
    .nav-pills::before {
        content: '';
        position: absolute;
        top: 24px;
        /* Adjust based on stepno height */
        left: 50px;
        right: 50px;
        height: 2px;
        background-color: #E5E7EB;
        z-index: 0;
    }
}

.nav-item {
    position: relative;
    /* Creates stacking context for z-index */
    z-index: 1;
    /* Above the line */
    background-color: transparent;
}

.nav-link {
    background: transparent !important;
    padding: 0;
    opacity: 1;
    transition: all 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link.active,
.nav-link.done {
    opacity: 1;
}

.nav-link p {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    color: #4B5563;
    margin-top: 8px;
    font-family: var(--Outfit);
    transition: color 0.3s ease;
}

.nav-link.active p {
    color: #B12F9C;
    font-weight: 700;
}

/* Step Number Bubble */
.nav-link .stepno {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F3F4F6;
    color: #6B7280;
    border-radius: 50%;
    margin: 0 auto 12px;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid #E5E7EB;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active/Done Step styling */
.nav-link.active .stepno,
.nav-link.done .stepno {
    background: linear-gradient(135deg, #B12F9C 0%, #D4183D 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 6px -1px rgba(177, 47, 156, 0.4);
    transform: scale(1.1);
}

/* Typography & Headings */
.main-text-div h2 {
    font-weight: 800;
    font-size: 42px;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.main-text-div p {
    font-size: 18px;
    color: #6B7280;
}

.card-info h3 {
    font-weight: 700;
    font-size: 28px;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.card-info p {
    font-size: 16px;
    color: #6B7280;
    /* Neutral gray instead of pink for subtext */
}

/* Form Controls */
.form-label {
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 15px;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: #FFFFFF;
    border-color: #B12F9C;
    box-shadow: 0 0 0 4px rgba(177, 47, 156, 0.1);
}

.form-control::placeholder {
    color: #9CA3AF;
    font-size: 14px;
}

/* Select2 Matching .form-control */
.select2-container .select2-selection--single {
    height: 48px !important;
    /* Match typical input height with padding */
    background-color: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.select2-container .select2-selection__rendered {
    line-height: 48px !important;
    font-size: 15px !important;
    padding-left: 16px !important;
    /* Match form-control padding */
    color: #374151 !important;
}

.select2-container .select2-selection__arrow {
    height: 46px !important;
    right: 12px !important;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--single[aria-expanded="true"] {
    outline: none;
    background-color: #FFFFFF;
    border-color: #B12F9C !important;
    box-shadow: 0 0 0 4px rgba(177, 47, 156, 0.1) !important;
}

.select2-dropdown {
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden;
}

.select2-results__option {
    padding: 10px 16px !important;
    font-size: 14px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #B12F9C !important;
    color: white !important;
}

/* Select2 Multiple Choice Styling (Chips) */
.select2-container--default .select2-selection--multiple {
    background-color: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    min-height: 48px !important;
    padding: 2px 6px !important;
    /* Reduced padding for better flex centering */
    transition: all 0.2s ease;
}

/* Flex layout for the list of items */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    align-items: center !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    list-style: none !important;
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #FDF4FF !important;
    border: 1px solid #F0ABFC !important;
    border-radius: 20px !important;
    color: #B12F9C !important;
    padding: 4px 12px !important;
    font-size: 14px !important;
    margin: 0 !important;
    /* Managed by gap */
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 6px;
    height: 32px;
    /* Fixed height for consistency */
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border-right: none !important;
    color: #B12F9C !important;
    font-weight: bold;
    margin-right: 0 !important;
    margin-left: 0;
    /* Reset */
    padding: 0 !important;
    font-size: 16px;
    height: 100%;
    display: flex;
    align-items: center;
}

/* SEARCH INPUT IN MULTI: Fix alignment */
.select2-container--default .select2-selection--multiple .select2-search--inline {
    flex-grow: 1 !important;
    margin: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    margin-top: 5px !important;
    /* Minor tweak for vertical center align if needed, or 0 */
    margin-bottom: 5px !important;
    min-height: 24px !important;
    line-height: 24px !important;
    font-family: var(--Outfit) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background-color: transparent !important;
    color: #86198F !important;
}

/* Fix Select2 Clear 'x' position & style */
.select2-container--default .select2-selection--single .select2-selection__clear {
    height: 46px;
    line-height: 46px;
    margin-right: 28px;
    /* Move away from arrow */
    color: #9CA3AF;
    font-size: 18px;
    font-weight: 500;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #EF4444;
}

/* Responsiveness */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }

    .nav-pills {
        gap: 0.5rem;
    }

    .nav-link .stepno {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .nav-link p {
        font-size: 12px;
        line-height: 1.2;
    }

    .main-text-div h2 {
        font-size: 28px;
    }

    .main-text-div p {
        font-size: 16px;
    }

    footer .d-md-flex {
        flex-direction: column-reverse;
        /* Stack buttons, maybe next on top? or standard column. Keeping standard block behavior or flex col */
        gap: 1rem;
    }

    .btn {
        width: 100%;
        /* Full width buttons on mobile */
        justify-content: center;
    }
}

.uploaddiv {
    border: 2px solid #D1D5DC;
    padding: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-radius: 10px;
}

.file-label {
    text-align: center;
    cursor: pointer;
    display: inline-block;
}

.file-label .click-text {
    width: 100%;
    text-align: center;
    display: block;
    color: #364153;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
    text-align: center;
}

.file-label .file-type-text {
    width: 100%;
    display: block;
    text-align: center;
    color: #6A7282;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
    text-align: center;
}

.btn-addmore,
.btn-addmore:focus,
.btn-addmore:hover,
.btn-addmore:active {
    border: 2px solid #0000001A !important;
    border-radius: 8px !important;
    color: black !important;
    font-weight: 400;
    font-size: 14px;
    outline: none;
    background-color: #FFFFFF;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn-addmore:hover {
    background-color: #F5E6F7;
    border-color: #B12F9C !important;
    color: #47003B !important;
}

.selectedfile {
    background-color: #F9FAFB;
    border-radius: 10px;
    width: 100%;
    display: flex;
    padding: 8px 15px;
    justify-content: space-between;
    align-items: center;
}

.selectedfile p {
    margin: 0px;
    font-size: 16px;
    color: #364153;
}

.selectedfile .btn {
    color: #E7000B;
}

.two-divs {
    display: flex;
    width: 100%;
    border: 1px solid #E5E7EB;
    align-items: stretch;
    justify-items: center;
    border-radius: 8px;
    min-height: 250px;
    height: 250px;
}

.two-divs img {
    max-width: 100%;
    overflow: hidden;
    object-fit: contain;
    max-height: 215px;
    text-align: center;
}

.removeimage {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 99;
}

.removeCard {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 99;
}

.tag-item {
    position: relative;
    margin-right: 15px;
    background-color: #EAEAEA;
    padding: 5px 12px;
    border-radius: 8px;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 14px;
    font-weight: 400;
}

.tag-item .tag-close {
    background-color: #D4183D;
    color: white;
    position: absolute;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    right: -5px;
    top: -5px;
}

.purple-note {
    background-color: #FAF5FF;
    color: #B12F9C;
    padding: 15px 20px;
    margin: 0px;
    border: 1px solid #E9D4FF;
    border-radius: 8px;
}

.room-column {
    display: flex;
}

.room-card {
    width: 100%;
}

.room-card .remove-room {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #FEF2F2 !important;
    border: 1px solid #FECACA !important;
    color: #DC2626 !important;
    transition: all 0.2s ease;
}

.room-card .remove-room:hover {
    background-color: #DC2626 !important;
    color: #FFFFFF !important;
    border-color: #DC2626 !important;
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.room-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.room-name-row label {
    margin-bottom: 0;
    white-space: nowrap;
}

.room-name-row .room-name-input {
    flex: 1;
}

.room-name-row .remove-room {
    margin-left: auto;
}

.room-item-row label {
    display: block;
    margin-bottom: 6px;
}

.room-item-group {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.room-item-group .select2-container {
    width: 100% !important;
}

.room-item-group .room-upload-btn {
    border-color: #D1D5DC;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-item-group .room-upload-btn.has-files {
    background-color: #FAF5FF;
    border-color: #B12F9C;
    color: #47003B;
}

.tag-editor {
    min-height: 150px;
    background-color: #F3F3F5;
    border: 1px solid #D1D5DC;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    cursor: text;
}

.tag-editor::before {
    content: attr(data-placeholder);
    color: #717182;
    font-size: 14px;
    position: absolute;
    top: 12px;
    left: 12px;
    opacity: 0.7;
    pointer-events: none;
}

.tag-editor.has-tags::before,
.tag-editor:focus-within::before {
    display: none;
}

.tag-editor.has-tags::before {
    content: "";
}

.tag-editor .tag-input {
    border: none;
    background: transparent;
    min-width: 160px;
    flex: 1 1 160px;
    outline: none;
    font-size: 14px;
}

.tag-editor.is-invalid {
    border-color: #dc3545;
}

.tag-chip {
    background-color: #EAEAEA;
    border-radius: 999px;
    padding: 6px 30px 6px 12px;
    position: relative;
    font-size: 14px;
    color: #0A0A0A;
}

.tag-chip .tag-remove {
    border: none;
    background: transparent;
    color: #D4183D;
    font-size: 16px;
    line-height: 1;
    position: absolute;
    top: 2px;
    right: 6px;
    cursor: pointer;
    padding: 0;
}

/* Media Preview Strip */
.media-preview-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.media-thumbnail {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #D1D5DC;
    background-color: #F3F3F5;
    flex-shrink: 0;
}

.media-thumbnail-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.media-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-thumbnail-inner.is-video {
    background-color: #000;
}

.media-video-icon {
    position: absolute;
    color: white;
    font-size: 20px;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.media-remove-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #D4183D;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    padding: 0;
    z-index: 2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.media-remove-btn:hover {
    background-color: #B0152E;
}

.media-badge {
    background-color: #B12F9C;
    border-color: #B12F9C;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-badge .badge-text {
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.media-thumbnail-readonly {
    cursor: default;
}

.media-thumbnail-readonly .media-remove-btn {
    display: none;
}

.media-fallback-text {
    font-size: 12px;
    color: #555;
    padding: 4px;
    text-align: center;
    display: inline-block;
}

.read-only-mode .tag-editor {
    cursor: default;
    background-color: #f7f7f7;
}

.read-only-mode .tag-editor .tag-input {
    display: none;
}

.read-only-mode .room-item-group.read-only,
.read-only-mode .tag-editor {
    opacity: 0.9;
}

.media-thumbnail-readonly {
    cursor: default;
}

.media-thumbnail-readonly .media-remove-btn {
    display: none;
}

.media-fallback-text {
    font-size: 12px;
    color: #555;
    padding: 4px;
    text-align: center;
    display: inline-block;
}

.read-only-mode .tag-editor {
    cursor: default;
    background-color: #f7f7f7;
}

.read-only-mode .tag-editor .tag-input {
    display: none;
}

/* Media Lightbox */
.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1050;
}

.media-lightbox.d-none {
    display: none !important;
}

.media-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.media-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.media-lightbox-body {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-lightbox-image,
.media-lightbox-video {
    max-width: 80vw;
    max-height: 75vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: #000;
}

.media-lightbox-close {
    border: none;
    background: #D4183D;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

body.media-lightbox-open {
    overflow: hidden;
}

.overall-room-notes {
    margin-top: 15px;
    margin-bottom: 20px;
}

.overall-room-notes .auto-expand-textarea {
    min-height: 44px;
    overflow: hidden;
    resize: none;
}

.overall-boxes-column .boxes-count-select {
    margin-top: 8px;
    width: 100% !important;
    max-width: 100%;
    display: block;
}

.overall-boxes-column .form-label {
    display: block;
}