/* WIM Styles v1.6.0 */
.wim-modal {
    display: none;
    position: fixed;
    z-index: 999;
    /* Lowered so SweetAlert (1060+) is on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wim-modal.open {
    display: flex !important;
    opacity: 1;
    justify-content: center;
    align-items: center;
}

.wim-modal-content {
    background-color: #fff;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: wimSlideIn 0.3s ease;
/*     font-family: 'Inter', system-ui, sans-serif; */
}
.wim-section-title h2{
	font-size:28px !important;
}
h3.wim-form-title{
	font-size:24px !important;
}
.wim-subtitle{
	font-size:22px !important;
}
@keyframes wimSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wim-close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 10;
}

.wim-close-modal:hover {
    color: #000;
}

.wim-container {
    padding: 30px;
}

.wim-section-title {
    text-align: center;
    margin-bottom: 25px;
}

.wim-badge {
    background: #e0f2fe;
    color: #0284c7;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wim-section-title h2 {
    margin-top: 10px;
    font-size: 24px;
    color: #111827;
}

/* Progress */
.wim-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.wim-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
    transform: translateY(-50%);
}

.wim-step-indicator {
    width: 35px;
    height: 35px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6b7280;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: all 0.2s;
}

.wim-step-indicator.active {
    border-color: #32C0DF;
    color: #32C0DF;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.wim-step-indicator.completed {
    background: #32C0DF;
    border-color: #32C0DF;
    color: #fff;
}

/* Form Grids */
.wim-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.wim-grid-3 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}

@media(max-width: 640px) {

    .wim-grid-2,
    .wim-grid-3 {
        grid-template-columns: 1fr;
    }
	
	.wim-grid-2 {
		gap: 0px !important;
	}
		.wim-grid-3 {
		gap: 0px !important;
	}
}

.wim-field {
    margin-bottom: 15px;
}

.wim-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.wim-field input,
.wim-field select,
.wim-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.wim-field input:focus,
.wim-field select:focus,
.wim-field textarea:focus {
    outline: none;
    border-color: #32C0DF;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Steps */
.wim-step {
    display: none;
    /* JS toggles !important */
}

.wim-step.active {
    animation: wimFadeIn 0.3s ease;
}

@keyframes wimFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Cards & Subs */
.wim-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.wim-sub-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: block;
}

.wim-sub-card:hover {
    border-color: #9ca3af;
}

.wim-sub-card.selected-card {
    border-color: #32C0DF;
    background-color: #eff6ff;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1);
}

.wim-sub-card input {
    position: absolute;
    opacity: 0;
}

.wim-sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.wim-sub-title {
    font-weight: 600;
    color: #111827;
}

.wim-discount {
    background: #dcfce7;
    color: #166534;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

.wim-sub-desc {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* Custom Section */
.wim-custom-section {
    margin-top: 15px;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    animation: wimFadeIn 0.3s ease;
}

/* Screening */
.wim-screening-box {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.wim-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #7f1d1d;
    cursor: pointer;
}

.wim-checkbox-item input {
    margin-top: 3px;
}

/* Signature */
.wim-signature-wrapper {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    height: 120px;
    position: relative;
    background: #fff;
}

canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.wim-clear-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
}

/* Stripe */
.wim-stripe-container {
    padding: 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 20px;
}

/* Buttons */
.wim-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.wim-btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 15px;
    transition: all 0.2s;
}

.wim-btn-prev {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.wim-btn-prev:hover {
    background: #f9fafb;
}

.wim-btn-primary,
.wim-btn-default {
    background: #32C0DF;
    color: #fff;
}

.wim-btn-primary:hover,
.wim-btn-default:hover {
    background: #1d4ed8;
}

/* Invoice & Live Pricing */
.wim-live-total {
    margin-top: 5px;
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
}

.wim-live-total span {
    color: #2c3338;
    font-weight: 700;
}

.wim-invoice-container {
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.wim-inv-title {
    margin: 0 0 12px 0;
    font-size: 1.1em;
    border-bottom: 2px solid #eaecf0;
    padding-bottom: 8px;
    color: #1d2327;
}

.wim-inv-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.95em;
    color: #50575e;
}

.wim-inv-row strong {
    color: #2c3338;
}

.wim-inv-discount {
    color: #008a20;
}

.wim-inv-discount strong {
    color: #008a20;
}

.wim-inv-total-row {
    border-top: 2px solid #eaecf0;
    padding-top: 10px;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 1.2em;
    font-weight: 700;
    color: #135e96;
}

/* Loader Spinner */
.wim-loader {
    width: 16px;
    height: 16px;
    border: 2px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: wimRotation 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes wimRotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.wim-modal-content.no-scroll {
    overflow: hidden !important;
}

/* Full Page Loader Overlay */
.wim-full-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999999;
    /* Above everything */
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    pointer-events: all;
}

.wim-full-loader p {
    margin-top: 15px;
    font-weight: 600;
    color: #32C0DF;
    font-size: 16px;
}

.wim-loader-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #32C0DF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: wimRotation 1s linear infinite;
}

/* =========================================
   Modern Datepicker Customization
   ========================================= */
.ui-datepicker {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 12px !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    padding: 0 !important;
    overflow: hidden !important;
    width: 250px !important;
}

/* Header */
.ui-datepicker-header {
    background: #32C0DF !important;
    border: none !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 10px 0 !important;
    color: #fff !important;
}

.ui-datepicker-title {
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Icons */
.ui-datepicker-prev, .ui-datepicker-next {
    cursor: pointer !important;
    top: 10px !important;
}

.ui-datepicker-prev span, .ui-datepicker-next span {
    filter: invert(1) brightness(200%); /* Make icons white */
}

/* Calendar Table */
.ui-datepicker-calendar {
    margin: 0 !important;
}

.ui-datepicker-calendar thead th {
    color: #888 !important;
    font-weight: 600 !important;
    padding: 8px 0 !important;
}

.ui-state-default, .ui-widget-content .ui-state-default {
    background: #fff !important;
    border: none !important;
    color: #333 !important;
    text-align: center !important;
    padding: 8px 0 !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

/* Hover */
.ui-state-hover, .ui-widget-content .ui-state-hover {
    background: #f0f9ff !important;
    color: #32C0DF !important;
    border-radius: 50% !important;
}

/* Active / Today */
.ui-datepicker-current-day .ui-state-active {
    background: #32C0DF !important;
    color: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 6px rgba(50, 192, 223, 0.3) !important;
}

.ui-datepicker-today .ui-state-highlight {
    background: transparent !important;
    color: #32C0DF !important;
    border: 1px solid #32C0DF !important;
    border-radius: 50% !important;
}
.ui-datepicker select.ui-datepicker-month, .ui-datepicker select.ui-datepicker-year {
    width: 100% !important;
}