/* DOT IT Website Cost Calculator CSS */
:root {
    --dotit-primary: #0052FF;
    --dotit-primary-hover: #0043D6;
    --dotit-dark: #090d16;
    --dotit-text: #1e293b;
    --dotit-text-muted: #64748b;
    --dotit-bg-light: #f8fafc;
    --dotit-surface: #ffffff;
    --dotit-border: #e2e8f0;
    --dotit-border-hover: #cbd5e1;
    --dotit-accent-bg: #eff6ff;
    --dotit-radius-sm: 6px;
    --dotit-radius-md: 10px;
    --dotit-radius-lg: 16px;
    --dotit-shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --dotit-shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --dotit-shadow-active: 0 6px 24px rgba(0,82,255,0.12);
    --dotit-transition: all 180ms ease-in-out;
}

/* Calculator Container */
[data-dotit="calculator"] {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--dotit-text);
    background: var(--dotit-surface);
    border: 1px solid var(--dotit-border);
    border-radius: var(--dotit-radius-lg);
    box-shadow: var(--dotit-shadow-md);
    padding: 40px;
    margin: 30px auto;
    max-width: 1000px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    [data-dotit="calculator"] {
        padding: 24px 16px;
        margin: 15px auto;
        border-radius: var(--dotit-radius-md);
    }
}

/* Progress Bar */
.dotit-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dotit-text-muted);
}
.dotit-progress-bar-bg {
    width: 100%;
    height: 6px;
    background: var(--dotit-border);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 32px;
}
.dotit-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--dotit-primary);
    transition: width 300ms ease;
}

/* Question View */
[data-dotit="question"] {
    display: none;
}
[data-dotit="question"].active {
    display: block;
    animation: dotitFadeIn 200ms ease-in-out;
}

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

.dotit-question-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dotit-dark);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.dotit-question-desc {
    font-size: 15px;
    color: var(--dotit-text-muted);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Option Cards Grid */
.dotit-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .dotit-options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Card Styling */
.dotit-card {
    background: var(--dotit-surface);
    border: 2px solid var(--dotit-border);
    border-radius: var(--dotit-radius-md);
    padding: 20px;
    cursor: pointer;
    transition: var(--dotit-transition);
    position: relative;
    user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dotit-card:hover {
    border-color: var(--dotit-primary);
    box-shadow: var(--dotit-shadow-sm);
    transform: translateY(-2px);
}

.dotit-card.selected {
    border-color: var(--dotit-primary);
    background-color: var(--dotit-accent-bg);
    box-shadow: var(--dotit-shadow-active);
}

.dotit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.dotit-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--dotit-dark);
}

.dotit-card-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--dotit-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--dotit-transition);
    flex-shrink: 0;
    margin-left: 8px;
}

.dotit-card.selected .dotit-card-indicator {
    border-color: var(--dotit-primary);
    background: var(--dotit-primary);
}

.dotit-card.selected .dotit-card-indicator::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
}

.dotit-card-desc {
    font-size: 14px;
    color: var(--dotit-text-muted);
    line-height: 1.4;
    margin: 0;
}

/* Navigation Buttons */
.dotit-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--dotit-border);
    padding-top: 24px;
}

.dotit-btn-back {
    background: transparent;
    border: 1px solid var(--dotit-border);
    color: var(--dotit-text);
    padding: 12px 24px;
    border-radius: var(--dotit-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--dotit-transition);
}

.dotit-btn-back:hover {
    background: var(--dotit-bg-light);
    border-color: var(--dotit-border-hover);
}

.dotit-btn-next {
    background: var(--dotit-primary);
    border: none;
    color: #ffffff;
    padding: 12px 32px;
    border-radius: var(--dotit-radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--dotit-transition);
    min-height: 46px;
}

.dotit-btn-next:hover {
    background: var(--dotit-primary-hover);
    box-shadow: 0 4px 12px rgba(0,82,255,0.25);
}

.dotit-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* Summary Screen */
.dotit-summary-container {
    background: var(--dotit-bg-light);
    border-radius: var(--dotit-radius-md);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--dotit-border);
}

.dotit-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--dotit-border);
}
.dotit-summary-item:last-child {
    border-bottom: none;
}

.dotit-summary-key {
    font-weight: 600;
    color: var(--dotit-dark);
}
.dotit-summary-val {
    color: var(--dotit-text-muted);
}

/* Result Screen */
.dotit-result-card {
    background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: var(--dotit-radius-lg);
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
}

.dotit-result-badge {
    display: inline-block;
    background: rgba(0, 82, 255, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.dotit-result-price {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #ffffff;
    margin: 12px 0;
}

@media (max-width: 640px) {
    .dotit-result-price { font-size: 30px; }
}

.dotit-result-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.dotit-meta-box span {
    display: block;
    font-size: 13px;
    color: #94a3b8;
}
.dotit-meta-box strong {
    font-size: 16px;
    color: #ffffff;
}

/* Form inputs */
.dotit-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
@media (max-width: 640px) {
    .dotit-form-grid { grid-template-columns: 1fr; }
}

.dotit-form-group {
    display: flex;
    flex-direction: column;
}
.dotit-form-group.full-width {
    grid-column: span 2;
}
@media (max-width: 640px) {
    .dotit-form-group.full-width { grid-column: span 1; }
}

.dotit-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dotit-dark);
    margin-bottom: 6px;
}

.dotit-form-group input,
.dotit-form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--dotit-border);
    border-radius: var(--dotit-radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: var(--dotit-transition);
}

.dotit-form-group input:focus,
.dotit-form-group textarea:focus {
    outline: none;
    border-color: var(--dotit-primary);
    box-shadow: 0 0 0 3px rgba(0,82,255,0.1);
}

/* Version 2.1 Visual Hierarchy Styles */
.dotit-level-primary {
    margin-bottom: 24px;
}
.dotit-level-secondary {
    margin-bottom: 24px;
    background: #f8fafc;
    padding: 20px;
    border-radius: var(--dotit-radius-md);
    border: 1px solid var(--dotit-border);
}
.dotit-level-optional {
    margin-bottom: 24px;
    background: #ffffff;
    padding: 18px;
    border-radius: var(--dotit-radius-md);
    border: 1px dashed var(--dotit-border);
}

.dotit-section-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--dotit-dark);
    margin: 0 0 10px 0;
    display: block;
}

.dotit-pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dotit-pill-btn {
    background: #ffffff;
    border: 1.5px solid var(--dotit-border);
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dotit-dark);
    cursor: pointer;
    transition: var(--dotit-transition);
    user-select: none;
}

.dotit-pill-btn:hover {
    border-color: var(--dotit-primary);
    background: var(--dotit-accent-bg);
}

.dotit-pill-btn.selected {
    background: var(--dotit-primary);
    color: #ffffff;
    border-color: var(--dotit-primary);
    box-shadow: 0 2px 8px rgba(0,82,255,0.25);
}

.dotit-checkbox-pill {
    background: #ffffff;
    border: 1.5px solid var(--dotit-border);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--dotit-text);
    cursor: pointer;
    transition: var(--dotit-transition);
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dotit-checkbox-pill:hover {
    border-color: var(--dotit-primary);
}

.dotit-checkbox-pill.selected {
    border-color: var(--dotit-primary);
    background: var(--dotit-accent-bg);
    color: var(--dotit-primary);
}

.required-star {
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    margin-left: 4px;
}

/* Validation Error Styling */
.dotit-form-group.has-error input {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.dotit-form-group .error-msg {
    color: #ef4444;
    font-size: 12.5px;
    font-weight: 500;
    margin-top: 4px;
    display: none;
}

.dotit-form-group.has-error .error-msg {
    display: block;
}

/* intlTelInput Integration */
.dotit-form-group .iti {
    width: 100%;
}
.dotit-form-group .iti input {
    width: 100%;
}
.dotit-form-group .iti__country-list {
    border-radius: var(--dotit-radius-sm);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 1px solid var(--dotit-border);
    z-index: 99;
    color: #090d16;
}
.dotit-form-group .iti__selected-flag {
    padding: 0 12px;
    border-radius: var(--dotit-radius-sm) 0 0 var(--dotit-radius-sm);
}

