/* ========== Garage Form Compact Styles ========== */

/* Required field star - site color (use primary-red from garage.css when loaded) */
.required-star {
    color: #7A0115;
    font-weight: 600;
    margin-left: 2px;
}

/* Container */
.container.compact {
    max-width: 800px;
    margin: 0 auto;
    padding: 14px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Tabs - sticky so they stay visible when scrolling inside the modal */
.tabs.compact {
    display: flex;
    gap: 6px;
    border-bottom: 2px solid #E5E7EB;
    margin-bottom: 18px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    padding-bottom: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
}

.tabs.compact::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome/Safari */
}

.tab.compact {
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 500;
    color: #6B7280;
    transition: all 0.3s ease;
    border: none;
    background: none;
    position: relative;
    white-space: nowrap;
    font-size: 15px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tab.compact:hover {
    color: #1F2937;
}

.tab.compact.active {
    color: var(--primary-red);
    font-weight: 600;
}

.tab-indicator {
    position: absolute;
    bottom: -2px;
    height: 2px;
    background: var(--primary-red);
    transition: all 0.3s ease;
}

/* Steps */
.content.compact.step {
    display: none;
}

.content.compact.step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Title - less margin/padding */
.section-title.compact {
    font-size: 22px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #E5E7EB;
}

.section-subtitle.compact {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.section-subtitle.compact.label-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-subtitle.compact.label-with-icon .ti {
    color: var(--primary-red);
    font-size: 18px;
}

/* Form Groups - tighter vertical rhythm */
.form-group.compact {
    margin-bottom: 14px;
}

.form-group.compact label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 5px;
    font-size: 14px;
}

/* Label with project-colored icon */
.form-group.compact label.label-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group.compact label.label-with-icon .ti {
    color: var(--primary-red);
    font-size: 18px;
    flex-shrink: 0;
}

.form-group.compact label.label-with-icon.small .ti {
    font-size: 14px;
}

.form-group.compact .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group.compact .form-control:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group.compact .form-control:read-only,
.form-group.compact .form-control:disabled {
    background-color: #F3F4F6;
    cursor: not-allowed;
}

.form-group.compact .textarea {
    min-height: 80px;
    resize: vertical;
}

/* Custom Select */
.custom-select {
    position: relative;
}

.custom-select select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer !important;
    transition: all 0.2s ease;
}

.custom-select select:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Checkbox Group */
.checkbox-group.compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 12px;
    background: #F9FAFB;
    border-radius: 8px;
}

.checkbox-label.compact {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.checkbox-label.compact:hover {
    background: #F3F4F6;
}

.checkbox-label.compact input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}


/* Image Upload */
.image-upload-area.compact {
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.image-upload-area.compact:hover {
    border-color: #2563EB;
    background: #F9FAFB;
}

.upload-placeholder {
    display: block;
    cursor: pointer;
}

.upload-icon.compact {
    font-size: 48px;
    color: #9CA3AF;
    margin-bottom: 8px;
}

.image-upload-area.main-upload.compact {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-upload-area.small-upload.compact {
    min-height: 120px;
}

.additional-images-grid.compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Navigation Buttons */
.navigation.compact {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding: 20px;
    border-top: 1px solid #E5E7EB;
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 100;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -20px;
}

.btn.compact {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-back.compact {
    background: #F3F4F6;
    color: #374151;
}

.btn-back.compact:hover {
    background: #E5E7EB;
}

.btn-next.compact {
    background: #2563EB;
    color: white;
}

.btn-next.compact:hover {
    background: #1D4ED8;
}

/* Text Danger */
.text-danger {
    color: #DC2626;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Form Text Muted */
.form-text.text-muted {
    color: #6B7280;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .container.compact {
        padding: 15px;
    }

    .tabs.compact {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .tab.compact {
        white-space: nowrap;
        padding: 12px 18px;
        font-size: 14px;
        min-height: 44px;
    }

    .checkbox-group.compact {
        grid-template-columns: 1fr;
    }

    .additional-images-grid.compact {
        grid-template-columns: 1fr;
    }
}

/* ========== Scrollable Checkbox Container ========== */
.scrollable-checkbox-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 120px;
    overflow-y: auto;
    padding: 10px;
    background: #F9FAFB;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
}

.scrollable-checkbox-container::-webkit-scrollbar {
    width: 6px;
}

.scrollable-checkbox-container::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 3px;
}

.scrollable-checkbox-container::-webkit-scrollbar-thumb {
    background: #9CA3AF;
    border-radius: 3px;
}

.scrollable-checkbox-container::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

/* Checkbox Label in Scrollable Container */
.scrollable-checkbox-container .checkbox-label.compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
}

.scrollable-checkbox-container .checkbox-label.compact:hover {
    background: #F3F4F6;
    border-color: #2563EB;
}

.scrollable-checkbox-container .checkbox-label.compact input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.scrollable-checkbox-container .checkbox-label.compact span {
    font-size: 14px;
    color: #374151;
    user-select: none;
    flex: 1;
}

/* Scrollable checkboxes: inline row (more columns, project color) */
.scrollable-checkbox-container-inline {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    max-height: 160px;
}

.scrollable-checkbox-container .checkbox-label-project:hover,
.scrollable-checkbox-container-inline .checkbox-label.compact:hover {
    border-color: var(--primary-red);
    background: rgba(122, 1, 21, 0.04);
}

.scrollable-checkbox-container .checkbox-label-project input[type="checkbox"]:checked + span,
.scrollable-checkbox-container-inline .checkbox-label.compact:has(input:checked) {
    color: var(--primary-red);
    font-weight: 600;
}

.scrollable-checkbox-container-inline .checkbox-label.compact {
    accent-color: var(--primary-red);
}

/* Form divider - less vertical space */
.form-divider {
    margin: 12px 0;
    border: none;
    border-top: 1px solid #E5E7EB;
}

/* Tighter row gutters inside form */
.container.compact .row.g-3 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

/* ========== Services list (per-service price / type / description) ========== */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-row {
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease;
}

.service-row:has(.service-checkbox:checked) {
    border-color: var(--primary-red);
    background: var(--primary-red-light);
}

.service-row-header {
    padding: 8px 12px;
}

.service-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.service-checkbox-label .service-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-red);
}

.service-checkbox-label .service-name {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.service-row-details {
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(122, 1, 21, 0.12);
    background: rgba(255, 255, 255, 0.6);
}

.service-row-details .label-with-icon.small {
    font-size: 12px;
    margin-bottom: 4px;
}

.service-row-details .form-control-sm {
    padding: 6px 10px;
    font-size: 13px;
}

/* Service type select: same look as Price/Description (enabled, not grey) */
.service-row-details select.service-type,
.service-row-details select.form-control-sm {
    cursor: pointer !important;
    background-color: #fff !important;
    border: 1px solid #D1D5DB !important;
    color: #374151 !important;
    appearance: auto;
    -webkit-appearance: menulist;
}

.service-row-details select.service-type:hover,
.service-row-details select.form-control-sm:hover {
    border-color: #9CA3AF !important;
}

.service-row-details select.service-type:focus,
.service-row-details select.form-control-sm:focus {
    outline: none;
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 0 2px rgba(122, 1, 21, 0.1);
}

/* Vehicle Bodies loading state */
.vehicle-bodies-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 80px;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
}

.vehicle-bodies-loading p {
    margin: 0;
    font-size: 13px;
    color: #6B7280;
}

.vehicle-bodies-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid #E5E7EB;
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Responsive for Scrollable Checkboxes */
@media (max-width: 768px) {
    .scrollable-checkbox-container {
        grid-template-columns: 1fr;
        max-height: 200px;
    }
    .scrollable-checkbox-container-inline {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== Features Cards ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 6px;
}

/* Basic step: 4 features on one row, title only, project-colored icons */
.features-grid-inline {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.features-grid-inline .feature-info p {
    display: none;
}

.features-grid-inline .feature-card-label {
    align-items: center;
    padding: 10px 10px;
    gap: 10px;
}

.features-grid-inline .feature-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
    background: rgba(122, 1, 21, 0.08);
    color: var(--primary-red);
}

.features-grid-inline .feature-icon .ti {
    font-size: 22px;
    color: inherit;
}

.features-grid-inline .feature-info h4 {
    font-size: 14px;
    margin: 0;
}

.features-grid-inline .feature-card:hover {
    border-color: var(--primary-red);
}

.features-grid-inline .feature-card input[type="checkbox"]:checked + .feature-card-label {
    background: var(--primary-red-light);
}

.features-grid-inline .feature-card input[type="checkbox"]:checked + .feature-card-label .feature-icon {
    background: var(--primary-red);
    color: white;
}

.features-grid-inline .feature-card:has(input[type="checkbox"]:checked) {
    border-color: var(--primary-red);
    background: var(--primary-red-light);
    box-shadow: 0 0 0 1px var(--primary-red);
}

.feature-card {
    position: relative;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    overflow: hidden;
}

.feature-card:hover {
    border-color: #3B82F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.feature-card-label {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    cursor: pointer;
    margin-bottom: 0 !important;
    width: 100%;
}

.feature-icon {
    font-size: 24px;
    background: #F3F4F6;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.feature-info h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.feature-info p {
    margin: 0;
    font-size: 13px;
    color: #6B7280;
    line-height: 1.4;
}

/* Active State */
.feature-card input[type="checkbox"]:checked+.feature-card-label {
    background: #EFF6FF;
}

.feature-card input[type="checkbox"]:checked+.feature-card-label .feature-icon {
    background: #3B82F6;
    color: white;
    /* For if we use icons later */
}

.feature-card:has(input[type="checkbox"]:checked) {
    border-color: #3B82F6;
    background: #EFF6FF;
    box-shadow: 0 0 0 1px #3B82F6;
}

/* Responsive Features */
@media (max-width: 768px) {
    .features-grid-inline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .features-grid-inline {
        grid-template-columns: 1fr;
    }
}

/* ========== Premium Specifications Styles ========== */
.checkbox-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    background: #F9FAFB;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
}

.premium-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 !important;
}

.premium-checkbox:hover {
    border-color: #3B82F6;
    background: #F0F7FF;
}

.premium-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3B82F6;
    cursor: pointer;
}

.premium-checkbox span {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.premium-checkbox:has(input:checked) {
    border-color: #3B82F6;
    background: #EFF6FF;
    box-shadow: 0 0 0 1px #3B82F6;
}

/* Specifications: languages row (9 items), payment inline, project color */
.checkbox-grid-languages {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    padding: 12px;
}

.checkbox-grid-payment {
    grid-template-columns: 1fr;
    gap: 6px;
}

.checkbox-grid-payment-inline {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.premium-checkbox-project:hover {
    border-color: var(--primary-red);
    background: var(--primary-red-light);
}

.premium-checkbox-project input[type="checkbox"] {
    accent-color: var(--primary-red);
}

.premium-checkbox-project:has(input:checked) {
    border-color: var(--primary-red);
    background: var(--primary-red-light);
    box-shadow: 0 0 0 1px var(--primary-red);
}

/* Time Range Premium */
.time-range-premium {
    display: flex;
    gap: 12px;
}

.time-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time-input-wrapper span {
    font-size: 11px;
    text-transform: uppercase;
    color: #6B7280;
    font-weight: 600;
}

/* Input Group Premium */
.input-group-premium {
    display: flex;
    background: #fff;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.input-group-premium:focus-within {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group-premium .form-control {
    border: none !important;
    box-shadow: none !important;
    flex: 1;
}

.input-group-premium .unit-select {
    width: 80px;
    background: #F3F4F6;
    border: none !important;
    border-left: 1px solid #D1D5DB !important;
    border-radius: 0 !important;
    font-size: 12px;
    font-weight: 600;
    padding: 0 8px;
}

/* Parking/Switch Premium */
.parking-info-premium {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #F3F4F6;
    padding: 8px 12px;
    border-radius: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #D1D5DB;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: #3B82F6;
}

input:checked+.slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* ========== Premium Contact Styles ========== */
.contact-section-premium {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.contact-section-premium .section-subtitle-compact.label-with-icon .ti {
    color: var(--primary-red);
    font-size: 18px;
}

.section-subtitle-premium {
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #F3F4F6;
    padding-bottom: 12px;
}

.section-subtitle-premium i {
    color: #2563EB;
    font-size: 20px;
}

/* Working Hours (per day) table */
.working-hours-table {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    background: #F9FAFB;
}

.working-hours-header,
.working-hours-row {
    display: grid;
    grid-template-columns: 100px 1fr 1fr 100px;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
}

.working-hours-header {
    background: rgba(122, 1, 21, 0.08);
    font-weight: 600;
    font-size: 13px;
    color: #374151;
}

.working-hours-row {
    background: #fff;
    border-top: 1px solid #E5E7EB;
}

.working-hours-row .wh-day {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.working-hours-row .form-control.wh-start,
.working-hours-row .form-control.wh-end {
    padding: 6px 10px;
    font-size: 13px;
}

.wh-holiday-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #6B7280;
    margin: 0;
}

.wh-holiday-label input {
    accent-color: var(--primary-red);
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .working-hours-header,
    .working-hours-row {
        grid-template-columns: 80px 1fr 1fr 80px;
        font-size: 12px;
    }
}

/* Input Icon Wrapper */
.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper i {
    position: absolute;
    left: 12px;
    color: #9CA3AF;
    font-size: 18px;
    pointer-events: none;
    transition: all 0.2s ease;
}

.input-icon-wrapper .form-control {
    padding-left: 40px !important;
}

.input-icon-wrapper:focus-within i {
    color: #2563EB;
}

/* Social Grids */
.social-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* Social Colors */
.input-icon-wrapper.whatsapp:focus-within i {
    color: #25D366;
}

.input-icon-wrapper.facebook:focus-within i {
    color: #1877F2;
}

.input-icon-wrapper.instagram:focus-within i {
    color: #E4405F;
}

.input-icon-wrapper.twitter:focus-within i {
    color: #1DA1F2;
}

.input-icon-wrapper.linkedin:focus-within i {
    color: #0A66C2;
}

/* Responsive Contact */
@media (max-width: 768px) {
    .contact-section-premium {
        padding: 15px;
    }

    .social-grid-premium {
        grid-template-columns: 1fr;
    }
}

/* ========== Premium Address Section ========== */
.address-section-premium {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ========== Premium Media Section ========== */
.media-section-premium {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.premium-upload-card {
    border: 2px dashed #D1D5DB;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    background: #F9FAFB;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.premium-upload-card:hover {
    border-color: #3B82F6;
    background: #F0F7FF;
}

.premium-upload-card.has-preview {
    border-style: solid;
    border-color: #E5E7EB;
}

.premium-upload-card.small {
    min-height: 120px;
}

.upload-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    position: relative;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.upload-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(220, 38, 38, 0.9);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background 0.2s;
}

.upload-remove-btn:hover {
    background: var(--primary-red);
}

.upload-remove-btn.small {
    width: 28px;
    height: 28px;
    top: 6px;
    right: 6px;
    font-size: 14px;
}

.premium-upload-card.has-preview .upload-placeholder {
    z-index: 2;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.upload-icon-circle {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #3B82F6;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.upload-icon-circle.small {
    width: 36px;
    height: 36px;
    font-size: 18px;
}

.upload-icon-circle.upload-icon-project,
.media-upload-card .upload-icon-circle {
    color: var(--primary-red);
}

.premium-upload-card.media-upload-card:hover {
    border-color: var(--primary-red);
    background: var(--primary-red-light);
}

.cover-toggle-premium.cover-toggle-project .toggle-option input:checked + .toggle-card {
    border-color: var(--primary-red);
    background: var(--primary-red-light);
    color: var(--primary-red);
}

.btn-preview-vid.btn-preview-vid-project {
    background: var(--primary-red);
}

.btn-preview-vid.btn-preview-vid-project:hover {
    background: var(--primary-red-dark);
}

.gallery-add-area .upload-placeholder-project,
.upload-placeholder.upload-placeholder-project {
    color: var(--primary-red);
}

.gallery-overlay-remove {
    background: rgba(122, 1, 21, 0.85);
}

/* Cover Toggle */
.cover-toggle-premium {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.toggle-option {
    flex: 1;
    cursor: pointer;
}

.toggle-option input {
    display: none;
}

.toggle-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.toggle-option input:checked+.toggle-card {
    border-color: #3B82F6;
    background: #EFF6FF;
    color: #2563EB;
    box-shadow: 0 0 0 1px #3B82F6;
}

/* Gallery Premium */
.gallery-upload-premium {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    background: #F9FAFB;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
}

.gallery-preview-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(220, 38, 38, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Video Preview Box */
.video-preview-box {
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}

.btn-preview-vid {
    width: 100%;
    margin-top: 8px;
    background: #1F2937;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-preview-vid:hover {
    background: #111827;
}

/* ========== Premium Pricing Section ========== */
.pricing-section-premium {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.input-unit-premium {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.input-unit-premium:focus-within {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.currency-tag {
    background: #F3F4F6;
    padding: 0 12px;
    height: 40px;
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #6B7280;
    border-right: 1px solid #D1D5DB;
}

.input-unit-premium .form-control {
    border: none !important;
    box-shadow: none !important;
    font-weight: 600;
    color: #111827;
}

.input-unit-premium.old-price .form-control {
    color: #9CA3AF;
    text-decoration: line-through;
}

.input-icon-wrapper.textarea i {
    top: 12px;
}

.input-icon-wrapper.textarea .form-control {
    padding-top: 10px !important;
}
/* Smart Validation Highlights */
.is-invalid-alert {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2) !important;
    animation: pulseError 0.5s ease-in-out infinite alternate;
}

@keyframes pulseError {
    0% { transform: scale(1); }
    100% { transform: scale(1.01); }
}

/* Form Submission Loading */
.loading-spinner-small {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.premium-swal-popup {
    border-radius: 16px !important;
    font-family: 'Inter', sans-serif !important;
}
