/* ============================================================
   DCP Calculator – Responsive Styles
   All rules scoped under .dcp-wrap for theme-proof specificity
   ============================================================ */

.dcp-wrap * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.dcp-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f8fa;
    padding: 16px;
    width: 100%;
}

/* ── Layout ────────────────────────────────────────────── */

.dcp-wrap .dcp-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 900px) {
    .dcp-wrap .dcp-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

.dcp-wrap .dcp-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Sidebar ───────────────────────────────────────────── */

.dcp-wrap .dcp-sidebar {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 28px rgba(0,0,0,.15);
    width: 100%;
}

@media (min-width: 900px) {
    .dcp-wrap .dcp-sidebar {
        width: 300px;
        flex-shrink: 0;
        position: sticky;
        top: 20px;
    }
}

.dcp-wrap .dcp-sidebar-title {
    font-size: 1.15em;
    color: #1e5a8e;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.dcp-wrap .dcp-pricing-item {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid #ebebeb;
    font-size: .88em;
    gap: 8px;
}

.dcp-wrap .dcp-pricing-label { color: #666; }
.dcp-wrap .dcp-pricing-value { color: #333; font-weight: 600; text-align: right; }

.dcp-wrap .dcp-pricing-total {
    display: flex;
    justify-content: space-between;
    padding: 14px 0 0;
    margin-top: 12px;
    border-top: 2px solid #1e5a8e;
    font-size: 1.05em;
    font-weight: 700;
    gap: 8px;
}

.dcp-wrap .dcp-total-label { color: #1e5a8e; }
.dcp-wrap .dcp-total-value { color: #1e5a8e; text-align: right; }

/* ── Header ────────────────────────────────────────────── */

.dcp-wrap .dcp-header {
    text-align: center;
    padding: 24px 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,.15);
}

.dcp-wrap .dcp-header h1 {
    color: #1e5a8e;
    font-size: 1.9em;
    line-height: 1.2;
    margin: 0;
}

@media (min-width: 600px) {
    .dcp-wrap .dcp-header h1 { font-size: 2.4em; }
}

/* ── Progress Bar ──────────────────────────────────────── */

.dcp-wrap .dcp-progress {
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.dcp-wrap .dcp-progress-track {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.dcp-wrap .dcp-progress-fill {
    background: linear-gradient(90deg, #1e5a8e, #2d7ba8);
    height: 100%;
    transition: width .35s ease;
    width: 0%;
}

.dcp-wrap .dcp-progress-text {
    text-align: center;
    margin-top: 8px;
    color: #666;
    font-size: .88em;
}

/* ── Card ──────────────────────────────────────────────── */

.dcp-wrap .dcp-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px 18px;
    box-shadow: 0 8px 28px rgba(0,0,0,.15);
    min-height: 400px;
}

@media (min-width: 600px) {
    .dcp-wrap .dcp-card { padding: 36px 32px; }
}

/* ── Steps ─────────────────────────────────────────────── */

.dcp-wrap .dcp-step { display: none; animation: dcpFadeIn .35s ease; }
.dcp-wrap .dcp-step.active { display: block; }

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

.dcp-wrap .dcp-step-header { margin-bottom: 24px; }

.dcp-wrap .dcp-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1e5a8e;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-weight: bold;
    font-size: .95em;
    margin-right: 12px;
    flex-shrink: 0;
    vertical-align: middle;
}

.dcp-wrap .dcp-step-title {
    font-size: 1.4em;
    color: #333;
    vertical-align: middle;
    line-height: 1.25;
}

@media (min-width: 600px) {
    .dcp-wrap .dcp-step-title { font-size: 1.75em; }
}

.dcp-wrap .dcp-step-subtitle {
    color: #666;
    margin-top: 8px;
    font-size: .95em;
    margin-left: 50px;
    line-height: 1.5;
}

/* ── Option Grid ───────────────────────────────────────── */

.dcp-wrap .dcp-option-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 24px;
    align-items: stretch;
}

@media (min-width: 480px) {
    .dcp-wrap .dcp-option-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 780px) {
    .dcp-wrap .dcp-option-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

.dcp-wrap .dcp-option-grid.two-col {
    grid-template-columns: 1fr;
}

@media (min-width: 480px) {
    .dcp-wrap .dcp-option-grid.two-col { grid-template-columns: repeat(2, 1fr); }
}

/* ── Option Cards ──────────────────────────────────────── */

.dcp-wrap .dcp-option-card {
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all .25s ease;
    overflow: hidden;
    background: #fff;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dcp-wrap .dcp-option-card:hover {
    border-color: #1e5a8e;
    box-shadow: 0 4px 18px rgba(30,90,142,.18);
    transform: translateY(-3px);
}

.dcp-wrap .dcp-option-card.selected {
    border-color: #1e5a8e;
    background: #e6f2ff;
    box-shadow: 0 4px 18px rgba(30,90,142,.25);
}

.dcp-wrap .dcp-option-card.disabled {
    opacity: .4;
    pointer-events: none;
}

/* ── Images – background-image divs, 100% theme-proof ─── */

.dcp-wrap .dcp-option-img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e8eef3;
    flex-shrink: 0;
    display: block;
}

.dcp-wrap .dcp-option-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.dcp-wrap .dcp-option-title {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 6px;
    font-weight: 600;
    line-height: 1.3;
}

.dcp-wrap .dcp-option-desc {
    color: #666;
    font-size: .9em;
    line-height: 1.5;
}

/* ── Size Visual – fixed smaller size, never wraps ──────── */

.dcp-wrap .dcp-size-visual {
    font-size: 1.5em;
    font-weight: bold;
    color: #1e5a8e;
    text-align: center;
    padding: 18px 8px 8px;
    white-space: nowrap;
}

/* ── Checkbox Grid ─────────────────────────────────────── */

.dcp-wrap .dcp-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 480px) {
    .dcp-wrap .dcp-checkbox-grid { grid-template-columns: repeat(2, 1fr); }
}

.dcp-wrap .dcp-checkbox-option {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all .25s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    -webkit-tap-highlight-color: transparent;
}

.dcp-wrap .dcp-checkbox-option:hover { border-color: #1e5a8e; background: #fafafa; }
.dcp-wrap .dcp-checkbox-option.selected { border-color: #1e5a8e; background: #e6f2ff; }

.dcp-wrap .dcp-checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1e5a8e;
    flex-shrink: 0;
}

.dcp-wrap .dcp-checkbox-title { font-weight: 600; color: #333; }
.dcp-wrap .dcp-checkbox-desc  { font-size: .88em; color: #666; margin-top: 3px; line-height: 1.4; }

/* ── Buttons ───────────────────────────────────────────── */

.dcp-wrap .dcp-buttons {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.dcp-wrap .dcp-btn {
    flex: 1;
    min-width: 120px;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all .25s ease;
    font-weight: 600;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.dcp-wrap .dcp-btn-primary { background: #1e5a8e; color: #fff !important; }
.dcp-wrap .dcp-btn-primary:hover:not(:disabled) {
    background: #164570;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(30,90,142,.35);
}

.dcp-wrap .dcp-btn-secondary { background: #f0f4f8; color: #1e5a8e !important; border: 2px solid #c8d9ea; }
.dcp-wrap .dcp-btn-secondary:hover { background: #e1ecf5; }

.dcp-wrap .dcp-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Form ──────────────────────────────────────────────── */

.dcp-wrap .dcp-form-group { margin-bottom: 18px; }
.dcp-wrap .dcp-form-group label { display: block; margin-bottom: 6px; color: #333; font-weight: 500; }

.dcp-wrap .dcp-form-group input,
.dcp-wrap .dcp-form-group select,
.dcp-wrap .dcp-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color .25s;
    background: #fff;
    color: #333;
    -webkit-appearance: none;
}

.dcp-wrap .dcp-form-group input:focus,
.dcp-wrap .dcp-form-group select:focus,
.dcp-wrap .dcp-form-group textarea:focus {
    outline: none;
    border-color: #1e5a8e;
}

.dcp-wrap .dcp-form-group textarea { resize: vertical; min-height: 90px; }

.dcp-wrap .dcp-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 18px;
}

@media (min-width: 540px) {
    .dcp-wrap .dcp-form-row { grid-template-columns: 1fr 1fr; }
}

/* ── Summary Box ───────────────────────────────────────── */

.dcp-wrap .dcp-summary-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 28px;
    text-align: center;
}

.dcp-wrap .dcp-summary-title {
    font-size: 1.3em;
    color: #1e5a8e;
    margin-bottom: 10px;
    font-weight: 700;
}

.dcp-wrap .dcp-result-range {
    font-size: 2em;
    color: #1e5a8e;
    font-weight: 700;
    margin: 12px 0;
    line-height: 1.2;
}

@media (min-width: 480px) {
    .dcp-wrap .dcp-result-range { font-size: 2.5em; }
}

.dcp-wrap .dcp-summary-note { color: #666; font-size: .9em; margin-top: 8px; }

/* ── Success Screen ────────────────────────────────────── */

.dcp-wrap .dcp-success {
    text-align: center;
    padding: 40px 20px;
}

.dcp-wrap .dcp-success-icon {
    font-size: 3.5em;
    margin-bottom: 16px;
}

.dcp-wrap .dcp-success h2 {
    color: #1e5a8e;
    font-size: 1.8em;
    margin-bottom: 12px;
}

.dcp-wrap .dcp-success p { color: #666; font-size: 1em; line-height: 1.6; }
