/**
 * BM Internal Doors Calculator - Styles
 * Dark contained layout with tile product cards
 */

:root {
    --bmic-gold: #b8a369;
    --bmic-gold-hover: #c9b67a;
    --bmic-gold-dark: #9a8755;
    --bmic-dark: #1a1a1a;
    --bmic-dark-light: #1e1e1e;
    --bmic-dark-lighter: #2a2a2a;
    --bmic-dark-border: #3a3a3a;
    --bmic-white: #ffffff;
    --bmic-cream: #f5f5f0;
    --bmic-text: #e8e8e8;
    --bmic-text-muted: #888888;
    --bmic-success: #4a7c59;
    --bmic-error: #c44536;
}

/* ============================================
   MAIN CONTAINER - DARK BACKGROUND
   ============================================ */
.bmic-calculator-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--bmic-text);
    background: var(--bmic-dark);
    border-radius: 16px;
    border: 1px solid var(--bmic-dark-border);
}

/* ============================================
   PROGRESS STEPS
   ============================================ */
.bmic-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
    position: relative;
}

.bmic-progress::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--bmic-dark-border);
    z-index: 1;
}

.bmic-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 0 0 33.33%;
    max-width: 150px;
}

.bmic-step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bmic-dark-lighter);
    border: 2px solid var(--bmic-dark-border);
    color: var(--bmic-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.bmic-progress-step.active .bmic-step-number,
.bmic-progress-step.completed .bmic-step-number {
    background: var(--bmic-success);
    border-color: var(--bmic-success);
    color: var(--bmic-white);
}

.bmic-step-label {
    font-size: 13px;
    color: var(--bmic-text-muted);
    text-align: center;
}

.bmic-progress-step.active .bmic-step-label {
    color: var(--bmic-gold);
    font-weight: 500;
}

/* ============================================
   FORM SECTIONS
   ============================================ */
.bmic-form-section {
    display: none;
    animation: bmicFadeIn 0.4s ease;
}

.bmic-form-section.active {
    display: block;
}

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

.bmic-section-header {
    background: var(--bmic-dark-light);
    border: 1px solid var(--bmic-dark-border);
    border-bottom: none;
    padding: 22px 25px;
    border-radius: 8px 8px 0 0;
}

.bmic-section-header h2 {
    margin: 0 0 6px;
    font-size: 20px;
    color: var(--bmic-white);
    font-weight: 600;
}

.bmic-section-header p {
    margin: 0;
    font-size: 14px;
    color: var(--bmic-text-muted);
}

.bmic-form-body {
    background: var(--bmic-dark-light);
    border: 1px solid var(--bmic-dark-border);
    border-top: none;
    padding: 25px;
    border-radius: 0 0 8px 8px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.bmic-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.bmic-form-row:last-child {
    margin-bottom: 0;
}

.bmic-form-group {
    display: flex;
    flex-direction: column;
}

.bmic-form-group.bmic-full-width {
    grid-column: 1 / -1;
}

.bmic-form-group.bmic-hidden {
    display: none !important;
}

.bmic-form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--bmic-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bmic-form-group label .required {
    color: var(--bmic-gold);
    font-weight: 600;
}

.bmic-form-group label .bmic-optional {
    color: var(--bmic-text-muted);
    font-weight: 400;
    font-size: 12px;
}

/* Tooltips */
.bmic-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--bmic-gold);
    color: var(--bmic-dark);
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    cursor: help;
    position: relative;
    flex-shrink: 0;
}

.bmic-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bmic-dark);
    border: 1px solid var(--bmic-gold);
    color: var(--bmic-text);
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: normal;
    white-space: normal;
    width: 250px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    line-height: 1.5;
    pointer-events: none;
}

.bmic-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--bmic-gold);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    pointer-events: none;
}

.bmic-tooltip:hover::after,
.bmic-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Tooltip mobile - positioned ABOVE, constrained to viewport */
@media (max-width: 768px) {
    .bmic-tooltip::after {
        bottom: calc(100% + 12px);
        top: auto;
        left: auto;
        right: -10px;
        transform: none;
        width: 200px;
        max-width: calc(100vw - 60px);
        font-size: 11px;
        padding: 10px 12px;
    }
    
    /* Arrow pointing down toward the icon */
    .bmic-tooltip::before {
        bottom: calc(100% + 4px);
        top: auto;
        left: auto;
        right: 2px;
        transform: none;
        margin-left: 0;
        border: 6px solid transparent;
        border-top-color: var(--bmic-gold);
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }
}

/* Prevent horizontal scroll on mobile */
.bmic-wrapper {
    overflow-x: hidden;
}

/* Input Fields */
.bmic-form-group input[type="text"],
.bmic-form-group input[type="email"],
.bmic-form-group input[type="tel"],
.bmic-form-group input[type="number"],
.bmic-form-group select,
.bmic-form-group textarea {
    padding: 14px 16px !important;
    background: #2a2a2a !important;
    background-color: #2a2a2a !important;
    border: 2px solid var(--bmic-dark-border) !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    color: #ffffff !important;
    transition: all 0.2s ease;
    width: 100% !important;
    box-sizing: border-box !important;
}

.bmic-wrapper input[type="text"],
.bmic-wrapper input[type="email"],
.bmic-wrapper input[type="tel"],
.bmic-wrapper input[type="number"],
.bmic-wrapper select,
.bmic-wrapper textarea {
    background: #2a2a2a !important;
    background-color: #2a2a2a !important;
    color: #ffffff !important;
}

.bmic-form-group input::placeholder,
.bmic-form-group textarea::placeholder {
    color: #888888 !important;
}

.bmic-form-group input:focus,
.bmic-form-group select:focus,
.bmic-form-group textarea:focus {
    outline: none !important;
    border-color: var(--bmic-gold) !important;
    box-shadow: 0 0 0 3px rgba(184, 163, 105, 0.25) !important;
    background: #2a2a2a !important;
    background-color: #2a2a2a !important;
}

.bmic-form-group input.error,
.bmic-form-group select.error {
    border-color: var(--bmic-error);
}

.bmic-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23666' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.bmic-form-group .bmic-hint {
    font-size: 12px;
    color: var(--bmic-text-muted);
    margin-top: 6px;
}

.bmic-form-group .bmic-error {
    font-size: 12px;
    color: var(--bmic-error);
    margin-top: 6px;
    display: none;
}

/* Radio Groups - Category Selection */
.bmic-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bmic-category-group .bmic-radio {
    flex: 1 1 auto;
    min-width: 130px;
    max-width: 180px;
}

.bmic-radio {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bmic-dark-lighter);
    border: 2px solid var(--bmic-dark-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bmic-radio:hover {
    border-color: var(--bmic-gold);
}

.bmic-radio input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    margin-right: 10px;
    accent-color: var(--bmic-gold);
    cursor: pointer;
}

.bmic-radio span {
    color: var(--bmic-text);
    font-size: 13px;
    font-weight: 500;
}

.bmic-radio:has(input:checked) {
    border-color: var(--bmic-gold);
    background: rgba(184, 163, 105, 0.15);
}

.bmic-radio:has(input:checked) span {
    color: var(--bmic-gold);
}

/* Not Sure Section */
.bmic-not-sure-section {
    margin-top: 20px;
}

.bmic-not-sure-section.bmic-hidden {
    display: none !important;
}

.bmic-regular-config.bmic-hidden {
    display: none !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.bmic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bmic-btn-primary {
    background: var(--bmic-gold);
    color: var(--bmic-dark);
}

.bmic-btn-primary:hover {
    background: var(--bmic-gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 163, 105, 0.3);
}

.bmic-btn-secondary {
    background: var(--bmic-dark-lighter);
    color: var(--bmic-text);
    border: 2px solid var(--bmic-dark-border);
}

.bmic-btn-secondary:hover {
    border-color: var(--bmic-gold);
    color: var(--bmic-gold);
}

.bmic-btn-success {
    background: var(--bmic-gold);
    color: var(--bmic-dark);
}

.bmic-btn-success:hover {
    background: var(--bmic-gold-hover);
}

.bmic-btn-outline {
    background: transparent;
    border: 2px solid var(--bmic-gold);
    color: var(--bmic-gold);
}

.bmic-btn-outline:hover {
    background: var(--bmic-gold);
    color: var(--bmic-dark);
}

.bmic-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.bmic-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--bmic-dark-border);
}

/* ============================================
   LOADING
   ============================================ */
.bmic-loading {
    display: none;
    text-align: center;
    padding: 60px 30px;
}

.bmic-loading.active {
    display: block;
}

.bmic-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid var(--bmic-dark-border);
    border-top-color: var(--bmic-gold);
    border-radius: 50%;
    animation: bmicSpin 0.8s linear infinite;
    margin: 0 auto 20px;
}

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

.bmic-loading p {
    color: var(--bmic-text-muted);
    font-size: 15px;
}

/* ============================================
   ACCORDION SUMMARY
   ============================================ */
.bmic-accordion {
    background: var(--bmic-dark-light);
    border: 1px solid var(--bmic-dark-border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.bmic-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
}

.bmic-accordion-header:hover {
    background: var(--bmic-dark-lighter);
}

.bmic-accordion-header h4 {
    margin: 0;
    font-size: 12px;
    color: var(--bmic-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.bmic-accordion-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bmic-edit-link {
    color: var(--bmic-gold);
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.bmic-edit-link:hover {
    text-decoration: underline;
}

.bmic-accordion-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.bmic-accordion-icon::after {
    content: '';
    border: solid var(--bmic-gold);
    border-width: 0 2px 2px 0;
    padding: 3px;
    transform: rotate(45deg);
    margin-top: -3px;
}

.bmic-accordion.open .bmic-accordion-icon::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.bmic-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.bmic-accordion.open .bmic-accordion-body {
    max-height: 350px;
}

.bmic-accordion-content {
    border-top: 1px solid var(--bmic-dark-border);
}

.bmic-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    border-bottom: 1px solid var(--bmic-dark-border);
    font-size: 13px;
}

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

.bmic-summary-row span:first-child {
    color: var(--bmic-text-muted);
}

.bmic-summary-row span:last-child {
    color: var(--bmic-text);
    font-weight: 500;
}

/* ============================================
   NOTICES
   ============================================ */
.bmic-notice {
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.bmic-notice-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    flex-shrink: 0;
}

.bmic-notice.success {
    background: rgba(74, 124, 89, 0.2);
    border: 1px solid var(--bmic-success);
}

.bmic-notice.success .bmic-notice-icon {
    background: var(--bmic-success);
    color: var(--bmic-white);
}

.bmic-notice.warning {
    background: rgba(184, 163, 105, 0.15);
    border: 1px solid var(--bmic-gold);
}

.bmic-notice.warning .bmic-notice-icon {
    background: var(--bmic-gold);
    color: var(--bmic-dark);
}

.bmic-notice-content h4 {
    margin: 0 0 4px;
    font-size: 14px;
    color: var(--bmic-text);
    font-weight: 600;
}

.bmic-notice-content p {
    margin: 0;
    font-size: 13px;
    color: var(--bmic-text-muted);
    line-height: 1.4;
}

.bmic-delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bmic-dark-light);
    border: 1px solid var(--bmic-dark-border);
    border-left: 3px solid var(--bmic-gold);
    border-radius: 0 6px 6px 0;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--bmic-text);
}

.bmic-delivery-badge strong {
    color: var(--bmic-gold);
}

/* ============================================
   QUOTE TABS
   ============================================ */
.bmic-quote-tabs {
    display: flex;
    margin-bottom: 20px;
    background: var(--bmic-dark-light);
    border: 1px solid var(--bmic-dark-border);
    border-radius: 8px;
    padding: 5px;
    gap: 5px;
}

.bmic-quote-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bmic-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bmic-quote-tab:hover {
    color: var(--bmic-text);
    background: var(--bmic-dark-lighter);
}

.bmic-quote-tab.active {
    background: var(--bmic-gold);
    color: var(--bmic-dark);
}

.bmic-quote-content {
    display: none;
}

.bmic-quote-content.active {
    display: block;
}

/* ============================================
   PRODUCT TYPE HEADERS
   ============================================ */
.bmic-product-type-header {
    background: var(--bmic-dark-light);
    border: 1px solid var(--bmic-dark-border);
    border-left: 3px solid var(--bmic-gold);
    padding: 14px 18px;
    margin: 25px 0 15px;
    border-radius: 0 8px 8px 0;
}

.bmic-product-type-header:first-child {
    margin-top: 0;
}

.bmic-product-type-header h3 {
    margin: 0;
    font-size: 15px;
    color: var(--bmic-white);
    font-weight: 600;
}

/* ============================================
   PRODUCT CARDS - TILE LAYOUT
   ============================================ */
.bmic-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 900px) {
    .bmic-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bmic-product-card {
    background: var(--bmic-dark-light);
    border: 1px solid var(--bmic-dark-border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.bmic-product-card:hover {
    border-color: var(--bmic-gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.bmic-product-card-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--bmic-dark-border);
    background: var(--bmic-dark-lighter);
}

.bmic-product-card-header h4 {
    margin: 0 0 2px;
    font-size: 13px;
    color: var(--bmic-white);
    font-weight: 600;
    line-height: 1.2;
}

.bmic-product-brand {
    font-size: 9px;
    color: var(--bmic-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bmic-product-card-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Configuration Options - Stacked with large images */
.bmic-config-selector {
    margin-bottom: 12px;
}

.bmic-config-label {
    font-size: 10px;
    color: var(--bmic-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 500;
}

.bmic-config-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Grid layout for configuration options - 2-3 side by side */
.bmic-config-options.bmic-config-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 900px) {
    .bmic-config-options.bmic-config-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Single product image display for items with no configuration choice */
.bmic-product-image-display {
    text-align: center;
    padding: 15px;
    background: var(--bmic-dark-lighter);
    border: 2px solid var(--bmic-dark-border);
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.bmic-product-image-display img {
    max-width: 200px;
    width: calc(100% + 20px);
    height: auto;
    background: var(--bmic-white);
    border-radius: 4px;
    padding: 0;
    margin: -10px;
    object-fit: cover;
}

.bmic-config-option {
    position: relative;
    cursor: pointer;
}

.bmic-config-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bmic-config-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: var(--bmic-dark-lighter);
    border: 2px solid var(--bmic-dark-border);
    border-radius: 6px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.bmic-config-btn img {
    width: calc(100% + 20px);
    max-width: none;
    height: auto;
    object-fit: cover;
    background: var(--bmic-white);
    border-radius: 4px;
    padding: 0;
    margin: -10px -10px 5px -10px;
}

.bmic-config-name {
    font-size: 11px;
    color: var(--bmic-text);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.bmic-config-option:hover .bmic-config-btn {
    border-color: var(--bmic-gold);
}

.bmic-config-option input:checked + .bmic-config-btn {
    border-color: var(--bmic-gold);
    background: rgba(184, 163, 105, 0.15);
}

.bmic-config-option input:checked + .bmic-config-btn .bmic-config-name {
    color: var(--bmic-gold);
}

/* Product Specs Tags */
.bmic-product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.bmic-product-specs span {
    display: inline-block;
    background: var(--bmic-dark-lighter);
    border: 1px solid var(--bmic-dark-border);
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 9px;
    color: var(--bmic-text-muted);
}

/* Price Section */
.bmic-product-price {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--bmic-dark-border);
}

.bmic-price-was {
    font-size: 11px;
    color: var(--bmic-text-muted);
    text-decoration: line-through;
}

.bmic-price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--bmic-white);
    margin: 2px 0;
    line-height: 1;
}

.bmic-price-label {
    font-size: 10px;
    color: var(--bmic-text-muted);
    margin-bottom: 6px;
}

.bmic-price-saving {
    display: inline-block;
    background: var(--bmic-error);
    color: var(--bmic-white);
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 3px;
}

.bmic-product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid var(--bmic-dark-border);
}

.bmic-product-card-actions .bmic-btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 10px;
}

/* ============================================
   MODAL - IMPROVED
   ============================================ */
.bmic-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bmic-modal-overlay.active {
    display: flex;
}

.bmic-modal {
    background: var(--bmic-dark);
    border: 1px solid var(--bmic-dark-border);
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.bmic-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--bmic-dark-border);
    background: var(--bmic-dark-light);
}

.bmic-modal-header h3 {
    margin: 0;
    font-size: 17px;
    color: var(--bmic-white);
}

.bmic-modal-close {
    background: none;
    border: none;
    color: var(--bmic-text-muted);
    font-size: 26px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.bmic-modal-close:hover {
    color: var(--bmic-gold);
}

.bmic-modal-body {
    padding: 24px;
}

.bmic-modal-body .bmic-form-group {
    margin-bottom: 18px;
}

.bmic-modal-body .bmic-form-group:last-child {
    margin-bottom: 0;
}

.bmic-modal-footer {
    padding: 18px 24px;
    background: var(--bmic-dark-light);
    border-top: 1px solid var(--bmic-dark-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.bmic-modal-footer .bmic-btn {
    padding: 12px 24px;
    font-size: 13px;
}

.bmic-modal-footer .bmic-btn-secondary {
    background: transparent;
    border: none;
    color: var(--bmic-text-muted);
}

.bmic-modal-footer .bmic-btn-secondary:hover {
    color: var(--bmic-gold);
}

.bmic-enquiry-product-info {
    background: var(--bmic-dark-light);
    border: 1px solid var(--bmic-dark-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.bmic-enquiry-product-info h4 {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--bmic-text);
    font-weight: 500;
}

.bmic-enquiry-product-info p {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--bmic-gold);
}

/* ============================================
   SUCCESS / NO PRODUCTS
   ============================================ */
.bmic-results-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bmic-results-nav .bmic-btn {
    padding: 10px 16px;
    font-size: 12px;
}

.bmic-results-count {
    font-size: 14px;
    color: var(--bmic-text);
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bmic-dark-border);
}

.bmic-help-section {
    background: var(--bmic-dark-light);
    border: 1px solid var(--bmic-dark-border);
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
    text-align: center;
}

.bmic-help-section h4 {
    margin: 0 0 8px;
    color: var(--bmic-white);
    font-size: 16px;
}

.bmic-help-section p {
    margin: 0 0 15px;
    color: var(--bmic-text-muted);
    font-size: 13px;
}

.bmic-success-message {
    text-align: center;
    padding: 50px 30px;
}

.bmic-success-icon {
    width: 70px;
    height: 70px;
    background: var(--bmic-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 35px;
    color: var(--bmic-white);
}

.bmic-success-icon::after {
    content: '✓';
}

.bmic-success-message h3 {
    color: var(--bmic-white);
    margin-bottom: 12px;
    font-size: 22px;
}

.bmic-success-message p {
    color: var(--bmic-text-muted);
    margin-bottom: 25px;
    font-size: 14px;
}

.bmic-no-products {
    text-align: center;
    padding: 50px 30px;
    background: var(--bmic-dark-light);
    border: 1px solid var(--bmic-dark-border);
    border-radius: 10px;
}

.bmic-no-products h4 {
    color: var(--bmic-text);
    margin-bottom: 10px;
    font-size: 16px;
}

.bmic-no-products p {
    color: var(--bmic-text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

/* Error Message Display */
.bmic-error-message {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border: 2px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    margin: 20px 0;
}

.bmic-error-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.bmic-error-message h4 {
    color: #dc3545;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.bmic-error-message p {
    color: var(--bmic-text);
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .bmic-calculator-wrapper {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .bmic-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .bmic-section-header,
    .bmic-form-body {
        padding: 18px;
    }
    
    .bmic-btn-row {
        flex-direction: column;
    }
    
    .bmic-btn {
        width: 100%;
        padding: 14px 24px;
    }
    
    .bmic-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .bmic-product-card-header {
        padding: 12px 14px;
    }
    
    .bmic-product-card-header h4 {
        font-size: 13px;
    }
    
    .bmic-product-card-body {
        padding: 12px 14px;
    }
    
    .bmic-config-option-inner img {
        width: 60px;
        height: 50px;
    }
    
    .bmic-price-current {
        font-size: 18px;
    }
    
    .bmic-quote-tabs {
        flex-direction: column;
    }
    
    .bmic-category-group .bmic-radio {
        min-width: calc(50% - 5px);
        flex: 1 1 calc(50% - 5px);
    }
    
    .bmic-radio {
        padding: 10px 12px;
    }
    
    .bmic-radio span {
        font-size: 12px;
    }
    
    .bmic-progress::before {
        left: 10%;
        right: 10%;
    }
    
    .bmic-step-label {
        font-size: 11px;
    }
    
    .bmic-step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .bmic-category-group .bmic-radio {
        min-width: 100%;
        flex: 1 1 100%;
    }
}

/* ============================================
   BOOKING FORM STYLES
   ============================================ */

.bmic-booking-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background: var(--bmic-dark-light);
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
    overflow: visible;
}

.bmic-booking-wrapper *,
.bmic-booking-wrapper *::before,
.bmic-booking-wrapper *::after {
    box-sizing: border-box;
}

/* Calendar needs to overflow its container */
.bmic-booking-wrapper .bmic-form-group {
    position: relative;
    overflow: visible;
}

.bmic-booking-header {
    text-align: center;
    margin-bottom: 30px;
}

.bmic-booking-header h2 {
    color: var(--bmic-gold);
    font-size: 28px;
    margin: 0 0 10px;
    font-weight: 600;
}

.bmic-booking-header p {
    color: var(--bmic-text-muted);
    font-size: 15px;
    margin: 0;
}

/* Booking Type Selector */
.bmic-booking-type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.bmic-booking-type-option {
    cursor: pointer;
}

.bmic-booking-type-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bmic-booking-type-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bmic-dark-light);
    border: 2px solid var(--bmic-dark-border);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.bmic-booking-type-option:hover .bmic-booking-type-card {
    border-color: var(--bmic-gold);
}

.bmic-booking-type-option input:checked + .bmic-booking-type-card {
    border-color: var(--bmic-gold);
    background: rgba(184, 163, 105, 0.15);
}

.bmic-booking-type-icon {
    font-size: 32px;
    line-height: 1;
}

.bmic-booking-type-info h4 {
    color: var(--bmic-white);
    font-size: 16px;
    margin: 0 0 4px;
    font-weight: 600;
}

.bmic-booking-type-info p {
    color: var(--bmic-text-muted);
    font-size: 13px;
    margin: 0 0 6px;
}

.bmic-booking-type-availability {
    display: inline-block;
    background: var(--bmic-dark);
    color: var(--bmic-gold);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Booking Sections */
.bmic-booking-section {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bmic-dark-light);
    border-radius: 10px;
    overflow: visible;
    box-sizing: border-box;
    position: relative;
}

.bmic-booking-section h3 {
    color: var(--bmic-white);
    font-size: 16px;
    margin: 0 0 15px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bmic-dark-border);
}

/* Time Slots */
.bmic-time-slots-container {
    margin-top: 15px;
    width: 100%;
}

.bmic-time-slots-container > label {
    display: block;
    color: var(--bmic-text-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.bmic-time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

.bmic-time-slot {
    padding: 16px 12px;
    background: var(--bmic-dark);
    border: 2px solid var(--bmic-dark-border);
    border-radius: 8px;
    color: var(--bmic-text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.bmic-time-slot:hover {
    border-color: var(--bmic-gold);
    color: var(--bmic-gold);
    background: rgba(184, 163, 105, 0.1);
}

.bmic-time-slot.selected {
    background: var(--bmic-gold);
    border-color: var(--bmic-gold);
    color: var(--bmic-dark);
    font-weight: 600;
}

/* Custom Calendar Styles */
.bmic-calendar-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
    min-height: 50px;
    margin-bottom: 10px;
    overflow: visible;
}

.bmic-wrapper .bmic-calendar-input {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px;
    background: var(--bmic-white) !important;
    border: 2px solid var(--bmic-dark-border) !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    cursor: pointer;
    transition: border-color 0.2s;
}

.bmic-wrapper .bmic-calendar-input:hover {
    border-color: var(--bmic-gold) !important;
}

.bmic-wrapper .bmic-calendar-input-text {
    flex: 1;
    font-size: 14px;
    color: var(--bmic-dark);
}

.bmic-wrapper .bmic-calendar-input-text.placeholder {
    color: #888;
}

.bmic-wrapper .bmic-calendar-input-icon {
    font-size: 18px;
    color: #666;
    flex-shrink: 0;
}

/* Calendar Dropdown */
.bmic-wrapper .bmic-calendar {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 99999;
    background: #1a1a1a !important;
    border: 2px solid var(--bmic-gold) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    width: 320px;
    box-sizing: border-box;
    max-height: none !important;
    overflow: visible !important;
    min-height: 350px;
}

.bmic-wrapper .bmic-calendar.active {
    display: block !important;
}

/* Calendar Header - FIXED */
.bmic-wrapper .bmic-calendar-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
    gap: 10px !important;
    width: 100%;
}

.bmic-wrapper .bmic-calendar-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--bmic-gold) !important;
    text-align: center !important;
    flex: 1 1 auto !important;
    white-space: nowrap;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.bmic-wrapper .bmic-calendar-nav-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    background: #2a2a2a !important;
    border: 2px solid #444 !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: bold !important;
    cursor: pointer;
    transition: all 0.2s;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.bmic-wrapper .bmic-calendar-nav-btn:hover {
    background: var(--bmic-gold) !important;
    color: #1a1a1a !important;
    border-color: var(--bmic-gold) !important;
}

/* Calendar Weekdays */
.bmic-wrapper .bmic-calendar-weekdays {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 4px !important;
    margin-bottom: 8px !important;
    width: 100%;
}

.bmic-wrapper .bmic-calendar-weekday {
    text-align: center !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--bmic-gold) !important;
    padding: 8px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    background: transparent !important;
    border: none !important;
}

/* Calendar Days Grid */
.bmic-wrapper .bmic-calendar-days {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 4px !important;
    width: 100%;
}

.bmic-wrapper .bmic-calendar-day {
    width: 100% !important;
    aspect-ratio: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #e0e0e0 !important;
    background: #2a2a2a !important;
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 !important;
    margin: 0 !important;
}

.bmic-wrapper .bmic-calendar-day:hover:not(.disabled):not(.other-month) {
    border-color: var(--bmic-gold) !important;
    color: var(--bmic-gold) !important;
}

.bmic-wrapper .bmic-calendar-day.selected {
    background: var(--bmic-gold) !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    border-color: var(--bmic-gold) !important;
}

.bmic-wrapper .bmic-calendar-day.today:not(.selected) {
    border-color: var(--bmic-gold) !important;
}

.bmic-wrapper .bmic-calendar-day.other-month {
    color: #555 !important;
    background: transparent !important;
    cursor: default;
    border-color: transparent !important;
}

.bmic-wrapper .bmic-calendar-day.disabled {
    color: #555 !important;
    background: #222 !important;
    cursor: not-allowed;
    opacity: 0.5;
}

.bmic-no-slots {
    padding: 20px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    color: #ff6b6b;
    text-align: center;
    margin-top: 15px;
}

.bmic-no-slots p {
    margin: 0;
}

.bmic-loading-slots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: var(--bmic-text-muted);
}

.bmic-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--bmic-dark-border);
    border-top-color: var(--bmic-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.bmic-date-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--bmic-text-muted);
}

/* Booking Submit */
.bmic-booking-submit {
    text-align: center;
    padding-top: 10px;
}

.bmic-btn-large {
    padding: 16px 40px !important;
    font-size: 16px !important;
}

.bmic-booking-disclaimer {
    color: var(--bmic-text-muted);
    font-size: 12px;
    margin-top: 15px;
}

/* Booking Success */
.bmic-booking-success {
    text-align: center;
    padding: 40px 20px;
}

.bmic-booking-success .bmic-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bmic-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.bmic-booking-success h3 {
    color: var(--bmic-white);
    font-size: 24px;
    margin: 0 0 15px;
}

.bmic-booking-reference {
    color: var(--bmic-gold);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
}

.bmic-booking-details {
    background: var(--bmic-dark-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bmic-booking-details p {
    margin: 5px 0;
    color: var(--bmic-text);
}

/* Full width form group */
.bmic-full-width {
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 768px) {
    .bmic-booking-wrapper {
        padding: 20px;
    }
    
    .bmic-booking-type-selector {
        grid-template-columns: 1fr;
    }
    
    .bmic-time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bmic-booking-header h2 {
        font-size: 22px;
    }
    
    .bmic-calendar {
        min-width: 100%;
        left: 0;
        right: 0;
    }
}

@media (max-width: 480px) {
    .bmic-time-slots {
        grid-template-columns: 1fr;
    }
    
    .bmic-time-slot {
        padding: 16px 12px;
        font-size: 14px;
    }
    
    .bmic-booking-type-card {
        flex-direction: column;
        text-align: center;
    }
    
    .bmic-booking-section {
        padding: 15px;
    }
    
    .bmic-calendar {
        padding: 15px;
    }
    
    .bmic-calendar-day {
        font-size: 13px;
    }
}
