@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.dyt-calculator-wrapper {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #ffffff;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.dyt-calculator-wrapper * {
    box-sizing: border-box;
}

/* Main Layout: Left Services Grid (2 cols) + Right Order Card (1 col) */
.dyt-main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* Left Section: 2x2 Category Cards Grid */
.dyt-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dyt-category-card {
    background-color: #151515;
    border-radius: 12px;
    padding: 30px 24px;
    border: 1px solid #262626;
}

.dyt-category-card h3 {
    font-size: 17px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.35;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.dyt-course-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dyt-course-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13.5px;
}

.dyt-course-list li:last-child {
    margin-bottom: 0;
}

.dyt-course-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #a1a1aa;
    transition: color 0.2s ease;
    user-select: none;
}

.dyt-course-list label:hover {
    color: #ffffff;
}

.dyt-calc-checkbox {
    display: none;
}

.dyt-checkbox-custom {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1.5px solid #52525b;
    border-radius: 3px;
    margin-right: 12px;
    position: relative;
    background-color: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.dyt-calc-checkbox:checked + .dyt-checkbox-custom {
    background-color: #ffffff;
    border-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 11px;
}

.dyt-item-name {
    flex: 1;
    font-weight: 400;
}

.dyt-item-price {
    font-weight: 700;
    color: #ffffff;
    margin-left: 12px;
    white-space: nowrap;
}

/* Right Section: Order Form Sidebar Card */
.dyt-order-card {
    background-color: #151515;
    border-radius: 12px;
    padding: 30px 24px;
    border: 1px solid #262626;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.dyt-order-title {
    font-size: 18px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 22px;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.dyt-field-group {
    margin-bottom: 16px;
}

.dyt-input {
    width: 100%;
    background-color: #202020 !important;
    border: 1px solid #333333 !important;
    border-radius: 8px !important;
    padding: 13px 16px !important;
    font-size: 14px !important;
    color: #ffffff !important;
    font-family: inherit !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
    color-scheme: dark !important;
}

.dyt-input::placeholder {
    color: #71717a !important;
}

.dyt-input:focus {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15) !important;
}

/* Custom Time Picker Styling */
#dyt-call-time {
    cursor: pointer !important;
    position: relative !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 18px !important;
    padding-right: 44px !important;
}

#dyt-call-time:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* Custom Styled Dark-Theme Flatpickr Time Picker */
.flatpickr-calendar {
    background: #18181b !important; /* Elegant slate-900 background */
    border: 1px solid #27272a !important; /* Zinc-800 border */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-family: inherit !important;
    width: 200px !important;
}

.flatpickr-calendar.arrowTop:before {
    border-bottom-color: #27272a !important;
}
.flatpickr-calendar.arrowTop:after {
    border-bottom-color: #18181b !important;
}
.flatpickr-calendar.arrowBottom:before {
    border-top-color: #27272a !important;
}
.flatpickr-calendar.arrowBottom:after {
    border-top-color: #18181b !important;
}

.flatpickr-time {
    background: #18181b !important;
    border-radius: 10px !important;
    border: none !important;
    height: 40px !important;
    line-height: 40px !important;
}

.flatpickr-time input {
    color: #ffffff !important;
    font-weight: 600 !important;
    background: transparent !important;
    border-radius: 6px !important;
    transition: background-color 0.2s ease !important;
}

/* Focused / Hover / Selected items inside Flatpickr */
.flatpickr-time input:hover, 
.flatpickr-time .flatpickr-am-pm:hover, 
.flatpickr-time input:focus, 
.flatpickr-time .flatpickr-am-pm:focus {
    background-color: #27272a !important; /* Dark-light zinc-800 background */
    color: #ffffff !important;
}

.flatpickr-time .flatpickr-time-separator {
    color: #71717a !important;
}

.flatpickr-time .flatpickr-am-pm {
    color: #ffffff !important;
    font-weight: 600 !important;
    background: transparent !important;
    border-radius: 6px !important;
    transition: background-color 0.2s ease !important;
}

/* Arrow buttons styling */
.flatpickr-time .numInputWrapper span {
    border: none !important;
}
.flatpickr-time .numInputWrapper span:hover {
    background-color: #27272a !important;
}
.flatpickr-time .numInputWrapper span.arrowUp:after {
    border-bottom-color: #a1a1aa !important;
}
.flatpickr-time .numInputWrapper span.arrowUp:hover:after {
    border-bottom-color: #ffffff !important;
}
.flatpickr-time .numInputWrapper span.arrowDown:after {
    border-top-color: #a1a1aa !important;
}
.flatpickr-time .numInputWrapper span.arrowDown:hover:after {
    border-top-color: #ffffff !important;
}

/* Section Blocks inside Form */
.dyt-section-block {
    margin-top: 18px;
    margin-bottom: 18px;
}

.dyt-block-label {
    display: block;
    font-size: 13px;
    color: #a1a1aa;
    margin-bottom: 12px;
    font-weight: 500;
}

/* Day Selector Buttons Grid */
.dyt-days-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
}

.dyt-days-row {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
}

.dyt-days-row .dyt-day-btn {
    flex: 1 1 0px !important;
    min-width: 0 !important;
    background-color: #1f1f22 !important;
    border: 1px solid #2e2e32 !important;
    color: #d4d4d8 !important;
    border-radius: 8px !important;
    padding: 11px 4px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.dyt-days-row .dyt-day-btn:hover {
    background-color: #27272a !important;
    color: #ffffff !important;
    border-color: #3f3f46 !important;
}

.dyt-days-row .dyt-day-btn.active {
    background-color: #ffffff !important;
    color: #161616 !important;
    border-color: #ffffff !important;
    font-weight: 700 !important;
}

/* Custom Select Dropdown */
.dyt-select-wrapper {
    position: relative;
    width: 100%;
}

.dyt-select {
    width: 100%;
    background-color: #202020 !important;
    border: 1px solid #333333 !important;
    border-radius: 8px !important;
    padding: 13px 16px !important;
    font-size: 14px !important;
    color: #ffffff !important;
    font-family: inherit !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%25ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
}

.dyt-select:focus {
    border-color: #ffffff !important;
}

.dyt-select option {
    background-color: #202020;
    color: #ffffff;
}

/* Total Cost Display */
.dyt-order-total {
    margin-top: auto;
    padding-top: 14px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #a1a1aa;
    font-weight: 500;
}

.dyt-order-total span {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin-left: 6px;
    margin-right: 4px;
}

/* Order Now Submit Button */
.dyt-calculator-wrapper button.dyt-order-btn,
.dyt-order-card button.dyt-order-btn,
.dyt-order-btn {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    background-color: #ffffff !important;
    color: #161616 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1) !important;
    text-align: center !important;
}

.dyt-calculator-wrapper button.dyt-order-btn:hover,
.dyt-order-card button.dyt-order-btn:hover,
.dyt-order-btn:hover {
    background-color: #e4e4e7 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2) !important;
}

.dyt-order-btn:disabled {
    opacity: 0.8 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Button Spinner */
.dyt-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    vertical-align: -2px;
    border: 2px solid rgba(22, 22, 22, 0.25);
    border-radius: 50%;
    border-top-color: #161616;
    animation: dytSpin 0.7s linear infinite;
}

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

/* Floating Toast Notice Overlay */
.dyt-status-notice {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    padding: 16px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    max-width: 420px;
    animation: dytToastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

@keyframes dytToastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dyt-status-notice.success {
    display: flex !important;
    align-items: center;
    gap: 10px;
    background-color: #14532d !important;
    border: 1px solid #22c55e !important;
    color: #ffffff !important;
}

.dyt-status-notice.error {
    display: flex !important;
    align-items: center;
    gap: 10px;
    background-color: #7f1d1d !important;
    border: 1px solid #ef4444 !important;
    color: #ffffff !important;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .dyt-main-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dyt-services-grid {
        grid-template-columns: 1fr;
    }

    .dyt-category-card,
    .dyt-order-card {
        padding: 20px 16px;
    }

    .dyt-day-btn {
        flex: 1 1 calc(33.33% - 8px);
    }
}