html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Publication Tabs Styling - Make tabs visible */
.nav-tabs .nav-link {
    color: #495057 !important;
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-bottom: none !important;
    margin-right: 2px;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    color: #ec4353 !important;
    background-color: #e9ecef !important;
    border-color: #dee2e6 #dee2e6 #fff !important;
}

.nav-tabs .nav-link.active {
    color: #fff !important;
    background-color: #ec4353 !important;
    border-color: #ec4353 !important;
}

.nav-tabs {
    border-bottom: 2px solid #ec4353;
}

.tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 20px;
    background-color: #fff;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
/* Media Type Cards */
.media-types-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.media-type-card {
    background: white;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 2px solid transparent;
}

.media-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ec4353 0%, #ff6b7a 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.media-type-card:hover::before {
    transform: scaleX(1);
}

.media-type-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(236, 67, 83, 0.25);
    border-color: rgba(236, 67, 83, 0.2);
}

.media-type-card.media-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.media-type-card.media-disabled:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.media-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #ec4353 0%, #ff6b7a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(236, 67, 83, 0.3);
    position: relative;
}

.media-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4353 0%, #ff6b7a 100%);
    opacity: 0.3;
    transform: scale(1.2);
    transition: all 0.4s ease;
}

.media-type-card:hover .media-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 12px 30px rgba(236, 67, 83, 0.4);
}

.media-type-card:hover .media-icon::after {
    transform: scale(1.4);
    opacity: 0.2;
}

.media-icon i {
    font-size: 2.8rem;
    color: white;
    z-index: 1;
    position: relative;
}

.media-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.media-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.media-action {
    margin-top: auto;
}

.action-text {
    color: #ec4353;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.media-type-card:hover .action-text {
    color: #d63447;
}

.action-text i {
    transition: transform 0.3s ease;
}

.media-type-card:hover .action-text i {
    transform: translateX(5px);
}


/* Booking Pages Styles */
.booking-hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0 40px;
    position: relative;
    min-height: auto;
}

.booking-hero-section .container {
    position: relative;
    z-index: 1;
}

.booking-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
    pointer-events: none;
}

.breadcrumb-nav a {
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.breadcrumb-nav a:hover {
    opacity: 1;
}

.booking-hero-title {
    font-size: 3rem;
    font-weight: 700;
}

.search-stats {
    font-size: 1.1rem;
}

.media-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.media-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.media-tab:hover {
    background: rgba(255, 255, 255, 0.2);
}

.media-tab.active {
    background: #ec4353;
    border-color: #ec4353;
}

.filter-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.btn-go {
    background: #ec4353;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-go:hover {
    background: #d63447;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(236, 67, 83, 0.3);
}

/* Business Cards */
.business-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.business-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
}

.business-card:hover::before {
    transform: scaleX(1);
}

.business-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.business-card:hover .business-logo {
    transform: scale(1.1) rotate(5deg);
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.business-logo img {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.business-card:hover .business-logo img {
    transform: scale(1.05);
}

.business-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.business-card:hover .business-name {
    color: #667eea;
}

.business-publications {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.business-stats {
    margin: 15px 0;
}


/* Booking Stepper */
.stepper-section {
    background: white;
    border-bottom: 1px solid #e9ecef;
    margin-top: 110px;
}

.booking-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.5rem;
    transition: all 0.3s;
    z-index: 2;
}

.step-icon i {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    font-size: 1.5rem;
    width: auto;
    height: auto;
}

.step.active .step-icon {
    background: #ec4353;
    color: white;
    box-shadow: 0 5px 15px rgba(236, 67, 83, 0.3);
}

.step-label {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.step.active .step-label {
    color: #ec4353;
    font-weight: 600;
}

.step-line {
    width: 100px;
    height: 2px;
    background: #e9ecef;
    margin: 0 10px;
    flex-shrink: 0;
    align-self: center;
    margin-top: -25px;
}

/* Package Selection Page */
.selection-sidebar,
.packages-content,
.info-sidebar {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ec4353;
}

.sidebar-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.categories-list {
    max-height: 300px;
    overflow-y: auto;
}

.category-item {
    padding: 10px 15px;
    margin-bottom: 5px;
    background: #f8f9fa;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-item:hover {
    background: #e9ecef;
    color: #ec4353;
}

/* Packages Section */
.packages-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.packages-title:hover {
    color: #ec4353;
}

.packages-title .collapse-icon {
    transition: transform 0.3s ease;
}

.packages-title[aria-expanded="false"] .collapse-icon {
    transform: rotate(-90deg);
}

.package-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.package-item:hover {
    border-color: #ec4353;
    background: #fff;
}

.package-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.package-item .form-check {
    margin: 0;
}

.package-item .form-check-input:checked ~ .form-check-label {
    color: #ec4353;
}

.package-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.package-pricing {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.package-rate {
    font-size: 1.2rem;
}

/* OR Divider */
.or-divider {
    text-align: center;
    position: relative;
    margin: 30px 0;
}

.or-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.or-divider span {
    background: white;
    padding: 0 20px;
    position: relative;
    color: #6c757d;
    font-weight: 600;
}

/* Info Cards */
.info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.info-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.info-item {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.info-item strong {
    color: #2c3e50;
}

.selected-info {
    min-height: 150px;
}

/* ============================================
   COMPOSE CLASSIFIED AD STYLES
   ============================================ */

.compose-section {
    background: #f8f9fa;
}

.compose-card {
    background: white;
    border-radius: 8px;
}

/* Preview Container */
#adPreviewContainer {
    min-height: 300px;
    padding: 20px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.ad-preview-container {
    padding: 15px;
}

.ad-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.ad-content {
    color: #495057;
    line-height: 1.6;
}

/* Enhancement Styles */
.form-control-color {
    width: 60px;
    height: 38px;
    padding: 2px;
    border-radius: 4px;
}

/* Invoice Summary */
.card-header[data-bs-toggle="collapse"] {
    cursor: pointer;
    user-select: none;
}

.card-header[data-bs-toggle="collapse"]:hover {
    background-color: #343a40 !important;
}

/* Compose Footer */
.compose-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

/* Multi-Select Dropdown with Checkboxes */
.multiselect-dropdown .dropdown-menu {
    max-height: 250px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.multiselect-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.multiselect-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

.multiselect-dropdown .dropdown-item label {
    cursor: pointer;
    margin-bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
}

.multiselect-dropdown .form-check-input {
    cursor: pointer;
    margin-top: 0;
}

.multiselect-dropdown .btn-white {
    background-color: white;
    border: 1px solid #ced4da;
    color: #495057;
}

.multiselect-dropdown .btn-white:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.multiselect-dropdown .selected-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    max-width: 90%;
}

/* Prevent dropdown from closing when clicking inside */
.multiselect-dropdown .dropdown-menu {
    padding: 0;
}

.multiselect-dropdown .dropdown-item:active {
    background-color: #e9ecef;
    color: #212529;
}

/* Combo Badge - Purple Background */
.bg-purple {
    background-color: #6f42c1 !important;
    color: white !important;
}

.bg-purple:hover {
    background-color: #5a32a3 !important;
}

