/* =========================
   THINC Scoped Reset
   ========================= */

.thinc-ms-root,
.thinc-ms-root * {
    all: revert !important;
    box-sizing: border-box !important;
}

.thinc-ms-root {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    color: #111827 !important;
}

.thinc-ms-root input,
.thinc-ms-root textarea,
.thinc-ms-root select,
.thinc-ms-root button {
    font-family: inherit !important;
    color: inherit !important;
}

/* Wrapper & background */
.thinc-ms-wrapper {
    padding: 40px 16px 60px !important;
    background: #f4f6fb !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.thinc-ms-title-block {
    text-align: center !important;
    margin-bottom: 24px !important;
    color: #1b2559 !important;
}

.thinc-ms-title-block h1 {
    font-size: 26px !important;
    margin-bottom: 4px !important;
    font-weight: 600 !important;
}

.thinc-ms-title-block p {
    margin: 0 !important;
    font-size: 14px !important;
    color: #6b7280 !important;
}

/* Card */
.thinc-ms-card {
    max-width: 960px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12) !important;
    padding: 32px 40px 28px !important;
}

/* Step header */
.thinc-step-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
}

.thinc-step-badge {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    background: #c88a2b !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

.thinc-step-header-main {
    flex: 1 !important;
}

.thinc-step-main-title {
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    margin: 0 0 10px !important;
    color: #111827 !important;
}

/* Progress bar */
.thinc-step-progress-outer {
    width: 100% !important;
    height: 0.5rem !important;
    border-radius: 999px !important;
    background: #e5e7eb !important;
    overflow: hidden !important;
    margin-bottom: 12px !important;
}

.thinc-step-progress-inner {
    width: 0% !important;
    height: 100% !important;
    background: #174299 !important;
    border-radius: inherit !important;
    transition: width 0.3s ease !important;
}

/* Step labels */
.thinc-step-labels {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 12px !important;
    color: #9ca3af !important;
}

.thinc-step-labels span {
    position: relative !important;
}

.thinc-step-labels span.active {
    color: #111827 !important;
    font-weight: 600 !important;
}

/* Body */
.thinc-step-body {
    margin-top: 10px !important;
}

.thinc-step-intro {
    text-align: center !important;
    margin-bottom: 28px !important;
}

.thinc-step-intro h2 {
    margin: 0 0 6px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #111827 !important;
}

.thinc-step-intro p {
    margin: 0 !important;
    font-size: 14px !important;
    color: #6b7280 !important;
}

/* Steps container */
.thinc-steps {
    margin-top: 10px !important;
}

.thinc-step {
    display: none !important;
}

.thinc-step.active {
    display: block !important;
}

/* Field groups */
.thinc-field-group {
    margin-bottom: 20px !important;
}

.thinc-field-group-label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin-bottom: 4px !important;
}

.thinc-field-group-help {
    font-size: 12px !important;
    color: #6b7280 !important;
    margin-bottom: 8px !important;
}

/* Option cards (radio-like buttons) */
.thinc-options-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.thinc-option-card {
    display: block !important;
    cursor: pointer !important;
}

.thinc-option-card input {
    display: none !important;
}

.thinc-option-content {
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    padding: 12px 14px !important;
    background: #ffffff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.thinc-option-title {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #111827 !important;
}

.thinc-option-sub {
    font-size: 12px !important;
    color: #6b7280 !important;
    margin-top: 3px !important;
}

.thinc-option-card input:checked+.thinc-option-content {
    border-color: #174299 !important;
    background: #f3f6ff !important;
    box-shadow: 0 0 0 1px rgba(23, 66, 153, 0.15) !important;
}

/* Inputs */
.thinc-grid-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 16px !important;
}

.thinc-input,
.thinc-textarea,
.thinc-select {
    width: 100% !important;
    padding: 11px 12px !important;
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    font-size: 13px !important;
    outline: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
    background: #f9fafb !important;
}

.thinc-input:focus,
.thinc-textarea:focus,
.thinc-select:focus {
    border-color: #174299 !important;
    box-shadow: 0 0 0 1px rgba(23, 66, 153, 0.16) !important;
    background: #ffffff !important;
}

.thinc-textarea {
    min-height: 80px !important;
    resize: vertical !important;
}

/* Toggle group */
.thinc-toggle-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin-top: 8px !important;
}

.thinc-toggle-group {
    display: inline-flex !important;
    border-radius: 999px !important;
    background: #e5e7eb !important;
    padding: 3px !important;
}

.thinc-toggle {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.thinc-toggle input {
    display: none !important;
}

.thinc-toggle-label {
    padding: 4px 14px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
    color: #4b5563 !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

.thinc-toggle input:checked+.thinc-toggle-label {
    background: #174299 !important;
    color: #ffffff !important;
}

/* Services (checkbox cards) */
.thinc-checkbox-card {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    cursor: pointer !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
    margin-bottom: 8px !important;
}

.thinc-checkbox-card input {
    margin-top: 4px !important;
}

.thinc-checkbox-card-main {
    flex: 1 !important;
}

.thinc-checkbox-title {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #111827 !important;
}

.thinc-checkbox-sub {
    font-size: 12px !important;
    color: #6b7280 !important;
    margin-top: 3px !important;
}

.thinc-checkbox-price {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #111827 !important;
}

.thinc-checkbox-card input:checked~.thinc-checkbox-card-main,
.thinc-checkbox-card input:checked~.thinc-checkbox-price {
    /* highlight container */
}

.thinc-checkbox-card input:checked+.thinc-checkbox-card-main {
    /* not used: structure different */
}

.thinc-checkbox-card:hover {
    border-color: #d1d5db !important;
}

/* Step 4 notice */
.thinc-notice {
    border-radius: 10px !important;
    padding: 16px 14px !important;
    background: #f3f4ff !important;
    border: 1px solid #e0e5ff !important;
    font-size: 13px !important;
    color: #374151 !important;
}

/* Summary (Step 6) */
.thinc-summary-card {
    border-radius: 14px !important;
    border: 1px solid #e5e7eb !important;
    background: #f5f7ff !important;
    padding: 14px 14px 10px !important;
    margin-bottom: 16px !important;
    font-size: 13px !important;
    color: #111827 !important;
}

.thinc-summary-row {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 6px !important;
}

.thinc-summary-row span.label {
    color: #6b7280 !important;
}

.thinc-summary-row span.value {
    font-weight: 500 !important;
}

.thinc-next-steps {
    border-radius: 14px !important;
    background: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    padding: 12px 14px !important;
    font-size: 12px !important;
    color: #1f2937 !important;
    margin-bottom: 12px !important;
}

.thinc-ready {
    border-radius: 14px !important;
    background: #ecfdf3 !important;
    border: 1px solid #bbf7d0 !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
    color: #166534 !important;
}

/* Footer navigation */
.thinc-nav-row {
    margin-top: 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Muslim info message (Step 1) */
.thinc-note-box {
    margin-top: 14px !important;
    padding: 14px 16px !important;
    background: #f1f6ff !important;
    border: 1px solid #d6e4ff !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #1e3a8a !important;
}

.thinc-note-box strong {
    color: #1e40af !important;
}


.thinc-btn {
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex;
    align-items: center !important;
    gap: 10px !important;
}

.thinc-btn-secondary {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #111827 !important;
}

.thinc-btn-primary {
    background: #174299 !important;
    color: #ffffff !important;
}

.thinc-btn-primary[disabled] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Messages */
.thinc-message {
    margin-top: 16px !important;
    font-size: 13px !important;
}

.thinc-message-success {
    color: #15803d !important;
}

.thinc-message-error {
    color: #b91c1c !important;
}

/* Responsive */
@media (max-width: 768px) {
    .thinc-ms-card {
        padding: 22px 18px 20px !important;
    }

    .thinc-grid-2 {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}


/* === Pixel Perfect Tweaks by Code Skardu === */
.thinc-ms-card {
    padding: 32px 40px 28px
}

.thinc-step-header {
    margin-bottom: 26px
}

.thinc-step-progress-outer {
    height: 0.5rem !important;
}

.thinc-step-intro h2 {
    font-size: 20px
}

.thinc-step-intro p {
    font-size: 14px
}


/* ===================================================
   STEP 2 – Personal Info Premium Layout (ADD ONLY)
   =================================================== */

/* Section header with icon */
.thinc-section-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
}

.thinc-section-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: #c88a2b !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
}

.thinc-section-header h3 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111827 !important;
}

/* Gender toggle buttons */
.thinc-gender-toggle {
    display: flex !important;
    gap: 12px !important;
    margin-top: 6px !important;
}

.thinc-gender-toggle label {
    flex: 1 !important;
    cursor: pointer !important;
}

.thinc-gender-toggle input {
    display: none !important;
}

.thinc-gender-toggle span {
    display: block !important;
    padding: 12px 0 !important;
    text-align: center !important;
    border-radius: 10px !important;
    background: #f3f4f6 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

.thinc-gender-toggle input:checked+span {
    background: #174299 !important;
    color: #ffffff !important;
}

/* Step 2 spacing refinement */
.thinc-step[data-step="2"] .thinc-field-group {
    margin-bottom: 18px !important;
}

.thinc-step[data-step="2"] .thinc-grid-2 {
    gap: 18px 20px !important;
}

/* Input background consistency */
.thinc-step[data-step="2"] .thinc-input {
    background: #f3f4f6 !important;
}

.thinc-step[data-step="2"] .thinc-input:focus {
    background: #ffffff !important;
}

/* Mobile refinement */
@media (max-width: 768px) {
    .thinc-gender-toggle {
        flex-direction: column !important;
    }
}

/* ===================================================
   STEP 3 – Family Details Premium Layout (ADD ONLY)
   =================================================== */
/* ===================================================
   STEP 3 – Family Details (ADD ONLY)
   =================================================== */

/* Marital status cards – grid refinement */
.thinc-marital-grid {
    margin-top: 10px !important;
}

/* Make marital cards look like design */
.thinc-marital-grid .thinc-option-content {
    text-align: center !important;
    font-weight: 600 !important;
    padding: 14px 0 !important;
}

/* Active marital card */
.thinc-marital-grid input:checked+.thinc-option-content {
    background: #174299 !important;
    color: #ffffff !important;
    border-color: #174299 !important;
    box-shadow: 0 6px 18px rgba(23, 66, 153, 0.25) !important;
}

/* Spouse box spacing */
.thinc-spouse-box {
    margin-top: 22px !important;
}

/* Children row */
.thinc-children-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    margin-top: 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Switch */
.thinc-switch {
    position: relative !important;
    display: inline-block !important;
    width: 46px !important;
    height: 26px !important;
}

.thinc-switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.thinc-slider {
    position: absolute !important;
    cursor: pointer !important;
    inset: 0 !important;
    background: #d1d5db !important;
    border-radius: 999px !important;
    transition: 0.3s !important;
}

.thinc-slider::before {
    content: "" !important;
    position: absolute !important;
    height: 20px !important;
    width: 20px !important;
    left: 3px !important;
    top: 3px !important;
    background: white !important;
    border-radius: 50% !important;
    transition: 0.3s !important;
}

.thinc-switch input:checked+.thinc-slider {
    background: #174299 !important;
}

.thinc-switch input:checked+.thinc-slider::before {
    transform: translateX(20px) !important;
}

/* Divider */
.thinc-divider {
    margin-top: 24px !important;
    border: none !important;
    border-top: 1px solid #e5e7eb !important;
}


/* ==============================
   STEP 3 – CHILDREN UI POLISH
   ============================== */

.thinc-marital-grid .thinc-option-content {
    text-align: center !important;
    font-weight: 600 !important;
    padding: 14px 0 !important;
}

.thinc-marital-grid input:checked+.thinc-option-content {
    background: #174299 !important;
    color: #ffffff !important;
    border-color: #174299 !important;
    box-shadow: 0 6px 18px rgba(23, 66, 153, 0.25) !important;
}

#children-container .thinc-summary-card {
    margin-top: 18px !important;
}

.remove-child {
    font-size: 13px !important;
    font-weight: 600 !important;
}

.thinc-children-row {
    margin-top: 22px !important;
}

.thinc-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
}

.thinc-field-group.error .thinc-field-group-label {
    color: #dc2626;
}