/* Homepage "Architect Design Cost Estimation" (index.blade.php, .hp-pkg, #design-packages).
   Own class (not .packages), so the shared .packages styles in about.css / perf.css,
   including their dark-mode colours, don't apply: this section is always light.
   Not part of the CSS bundle (no rebuild needed). */

.hp-pkg {
    position: relative;
    padding: 90px 0 100px;
    background-color: #fbf7f7;
    background-image:
        linear-gradient(rgba(198, 40, 40, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(198, 40, 40, .045) 1px, transparent 1px);
    background-size: 36px 36px;
    color: #222;
}

/* ── Header ───────────────────────────────────────────── */
.hp-pkg .hp-pkg-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.hp-pkg .hp-pkg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #c62828;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.hp-pkg .hp-pkg-eyebrow::before,
.hp-pkg .hp-pkg-eyebrow::after { content: ""; width: 34px; height: 2px; background: #c62828; }
.hp-pkg .process-title { margin: 0 0 12px; font-size: 2.6rem; line-height: 1.15; }
.hp-pkg .hp-pkg-title em { font-style: normal; color: #c62828; }
.hp-pkg .hp-pkg-sub { margin: 0; padding: 0; font-size: 17px; line-height: 1.7; color: #555; }

.hp-pkg .hp-pkg-pick {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    padding: 8px 8px 8px 10px;
    border: 1px solid #ecd8d8;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 22, 31, .07);
}
.hp-pkg .hp-pkg-pick-icon {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 50%;
    background: #fdecec;
    color: #c62828;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hp-pkg .hp-pkg-pick label { margin: 0; font-size: 14px; font-weight: 700; color: #333; white-space: nowrap; }
.hp-pkg .hp-pkg-sel {
    min-width: 230px;
    height: 44px;
    padding: 0 40px 0 18px;
    border: 1px solid #e3cfcf;
    border-radius: 999px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c62828' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
    color: #111;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.hp-pkg .hp-pkg-sel:focus-visible { border-color: #c62828; box-shadow: 0 0 0 3px rgba(198, 40, 40, .15); }

/* ── Cards ────────────────────────────────────────────── */
.hp-pkg .hp-pkg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    align-items: stretch;
    max-width: 1120px;
    margin: 0 auto;
}
.hp-pkg .hp-pkg-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px 28px 30px;
    border: 1px solid #f0e2e2;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(17, 22, 31, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.hp-pkg .hp-pkg-card:hover { transform: translateY(-6px); border-color: rgba(198, 40, 40, .3); box-shadow: 0 22px 44px rgba(198, 40, 40, .1); }
.hp-pkg .hp-pkg-card.is-popular {
    border: 1px solid rgba(198, 40, 40, .35);
    border-top: 4px solid #c62828;
    transform: translateY(-14px);
    box-shadow: 0 26px 54px rgba(198, 40, 40, .16);
}
.hp-pkg .hp-pkg-card.is-popular:hover { transform: translateY(-20px); }

.hp-pkg .hp-pkg-badge {
    position: absolute;
    left: 50%;
    top: 0;
    padding: 6px 16px;
    border-radius: 999px;
    background: #c62828;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translate(-50%, -60%);
    box-shadow: 0 8px 18px rgba(198, 40, 40, .3);
}

.hp-pkg .hp-pkg-name { margin: 0 0 4px; font-size: 22px; font-weight: 700; line-height: 1.3; color: #111; }
.hp-pkg .hp-pkg-tagline { margin: 0 0 18px; padding: 0; font-size: 14.5px; line-height: 1.6; color: #666; }
.hp-pkg .hp-pkg-price { font-size: 38px; font-weight: 800; line-height: 1.1; color: #111; }
.hp-pkg .hp-pkg-card.is-popular .hp-pkg-price { color: #c62828; }
.hp-pkg .hp-pkg-price small { font-size: 15px; font-weight: 600; color: #5f6368; }
.hp-pkg .hp-pkg-tag {
    align-self: flex-start;
    margin-top: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fdecec;
    color: #a81f1f;
    font-size: 12.5px;
    font-weight: 700;
}

.hp-pkg .hp-pkg-list { flex: 1; margin: 22px 0 26px; padding: 22px 0 0; border-top: 1px solid #f1e6e6; list-style: none; }
.hp-pkg .hp-pkg-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #444;
}
.hp-pkg .hp-pkg-list li + li { border-top: 1px dashed #f1e2e2; }
.hp-pkg .hp-pkg-list i {
    flex: 0 0 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: #fdecec;
    color: #c62828;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hp-pkg .hp-pkg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.hp-pkg .hp-pkg-btn:hover { transform: translateY(-2px); }
.hp-pkg .hp-pkg-btn--red { background: #c62828; border: 1px solid #c62828; color: #fff; box-shadow: 0 10px 22px rgba(198, 40, 40, .25); }
.hp-pkg .hp-pkg-btn--red:hover { background: #a91f1f; border-color: #a91f1f; color: #fff; }
.hp-pkg .hp-pkg-btn--line { background: #fff; border: 1px solid #c62828; color: #c62828; }
.hp-pkg .hp-pkg-btn--line:hover { background: #c62828; color: #fff; }

/* ── Note strip ───────────────────────────────────────── */
.hp-pkg .hp-pkg-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 900px;
    margin: 44px auto 0;
    padding: 14px 14px 14px 26px;
    border: 1px solid #f0dede;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 22, 31, .06);
}
.hp-pkg .hp-pkg-strip p { margin: 0; padding: 0; font-size: 14.5px; line-height: 1.55; color: #555; }
.hp-pkg .hp-pkg-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 11px 22px;
    border: 1px solid #c62828;
    border-radius: 999px;
    background: #c62828;
    color: #fff;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease;
}
.hp-pkg .hp-pkg-link:hover { background: #a91f1f; border-color: #a91f1f; color: #fff; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 991px) {
    .hp-pkg { padding: 70px 0 80px; }
    .hp-pkg .process-title { font-size: 2.2rem; }
    .hp-pkg .hp-pkg-grid { grid-template-columns: 1fr; max-width: 520px; gap: 34px; }
    .hp-pkg .hp-pkg-card.is-popular { order: -1; transform: none; }
    .hp-pkg .hp-pkg-card.is-popular:hover { transform: translateY(-6px); }
}
@media (max-width: 767px) {
    .hp-pkg { padding: 56px 0; background-size: 28px 28px; }
    .hp-pkg .process-title { font-size: 2rem; }
    .hp-pkg .hp-pkg-sub { font-size: 15.5px; }
    .hp-pkg .hp-pkg-head { margin-bottom: 44px; }
    .hp-pkg .hp-pkg-pick { display: flex; flex-wrap: wrap; justify-content: center; border-radius: 18px; padding: 14px; gap: 10px; }
    .hp-pkg .hp-pkg-sel { width: 100%; min-width: 0; }
    .hp-pkg .hp-pkg-card { padding: 30px 20px 24px; border-radius: 18px; }
    .hp-pkg .hp-pkg-price { font-size: 32px; }
    .hp-pkg .hp-pkg-strip { flex-direction: column; text-align: center; border-radius: 18px; padding: 18px; }
    .hp-pkg .hp-pkg-link { width: 100%; justify-content: center; }
}

/* ── "Select Package" popup (#designCostModal): light package panel + white form ── */
.dc-modal .modal-dialog { max-width: 880px; }
.dc-modal .modal-content { position: relative; border: 0; border-radius: 24px; overflow: hidden; background: #fff; color: #222; box-shadow: 0 34px 80px rgba(17, 22, 31, .3); }
.dc-modal .dc-close {
    position: absolute; top: 16px; right: 16px; z-index: 3; width: 36px; height: 36px;
    border: 0; border-radius: 50%; background: #f2f2f4; color: #444;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.dc-modal .dc-close:hover { background: #c62828; color: #fff; }
.dc-modal .dc-grid { display: grid; grid-template-columns: 5fr 6fr; margin: 0; }

/* Left panel */
.dc-modal .dc-side {
    position: relative;
    display: flex; flex-direction: column;
    padding: 34px 30px 28px;
    border-top: 4px solid #c62828;
    border-right: 1px solid #f0e2e2;
    background-color: #fbf7f7;
    background-image:
        linear-gradient(rgba(198, 40, 40, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(198, 40, 40, .045) 1px, transparent 1px);
    background-size: 28px 28px;
    color: #222;
}
.dc-modal .dc-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #c62828; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dc-modal .dc-eyebrow::before { content: ""; width: 24px; height: 2px; background: #c62828; }
.dc-modal .dc-pkgname { display: block; font-size: 21px; font-weight: 700; line-height: 1.3; color: #111; }
.dc-modal .dc-rate { margin-top: 10px; font-size: 38px; font-weight: 800; line-height: 1.1; color: #c62828; }
.dc-modal .dc-rate small { font-size: 15px; font-weight: 600; color: #777; }
.dc-modal .dc-area-note { display: block; margin-top: 4px; font-size: 13.5px; color: #666; }

.dc-modal .dc-picks { display: grid; gap: 10px; margin-top: 20px; }
.dc-modal .dc-pill {
    position: relative; display: block; margin: 0; padding: 7px 16px 6px;
    border: 1px solid #ecd8d8; border-radius: 14px; background: #fff; cursor: pointer;
    box-shadow: 0 6px 16px rgba(17, 22, 31, .05);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.dc-modal .dc-pill:hover { border-color: #e2b4b5; }
.dc-modal .dc-pill > span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #c62828; }
.dc-modal .dc-pill select {
    width: 100%; height: 26px; padding: 0 24px 0 0; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c62828' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 2px center;
    color: #111; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; outline: none;
    -webkit-appearance: none; appearance: none;
}
.dc-modal .dc-pill:focus-within { border-color: #c62828; box-shadow: 0 0 0 3px rgba(198, 40, 40, .12); }

.dc-modal .dc-incl { margin-top: 22px; }
.dc-modal .dc-incl-title { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: #111; }
.dc-modal .dc-incl ul { margin: 0; padding: 0; list-style: none; }
.dc-modal .dc-incl ul[hidden] { display: none; }
.dc-modal .dc-incl li { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; font-size: 14px; line-height: 1.5; color: #444; }
.dc-modal .dc-incl li i {
    flex: 0 0 18px; height: 18px; margin-top: 2px; border-radius: 50%;
    background: #fdecec; color: #c62828; font-size: 9px;
    display: inline-flex; align-items: center; justify-content: center;
}

.dc-modal .dc-side-foot {
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    margin-top: auto; padding-top: 18px; border-top: 1px dashed #eadada;
    font-size: 13px; color: #666;
}
.dc-modal .dc-incl + .dc-side-foot { margin-top: 22px; }
.dc-modal .dc-wa {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
    border: 1px solid #bfe9cf; border-radius: 999px; background: #fff; color: #0b6e36;
    font-size: 13.5px; font-weight: 700; text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.dc-modal .dc-wa i { font-size: 16px; }
.dc-modal .dc-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }

/* Right panel */
.dc-modal .dc-main { padding: 34px 32px 26px; }
.dc-modal .dc-main h3 { margin: 0 0 6px; padding-right: 40px; font-size: 24px; font-weight: 700; line-height: 1.25; color: #111; }
.dc-modal .dc-subtext { margin: 0 0 20px; padding: 0; font-size: 14px; line-height: 1.6; color: #666; }
.dc-modal .dc-field { margin-bottom: 13px; }
.dc-modal .dc-field label { display: block; margin: 0 0 5px; font-size: 13px; font-weight: 600; color: #333; }
.dc-modal .dc-field label small { font-weight: 500; color: #888; }
.dc-modal .dc-input { position: relative; }
.dc-modal .dc-input input {
    width: 100%; height: 46px; padding: 0 14px;
    border: 1px solid #e2e2e8; border-radius: 12px; background: #fafafb;
    color: #222; font-family: inherit; font-size: 15px; outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.dc-modal .dc-input input:focus { border-color: #e59a9b; background: #fff; box-shadow: 0 0 0 3px rgba(198, 40, 40, .12); }
.dc-modal .dc-input--icon input { padding-left: 42px; }
.dc-modal .dc-ico {
    position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; pointer-events: none;
    fill: none; stroke: #b0b0bb; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.dc-modal .dc-input--phone input { padding-left: 58px; }
.dc-modal .dc-prefix {
    position: absolute; left: 1px; top: 1px; height: 44px; width: 46px;
    display: flex; align-items: center; justify-content: center;
    border-right: 1px solid #e8e8ee; border-radius: 11px 0 0 11px; background: #f1f1f4;
    color: #444; font-size: 14px; font-weight: 600; pointer-events: none;
}
.dc-modal .dc-submit {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 8px; padding: 14px;
    border: 0; border-radius: 12px; background: #c62828; color: #fff;
    font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
    box-shadow: 0 10px 22px rgba(198, 40, 40, .25); transition: background .2s ease, transform .2s ease;
}
.dc-modal .dc-submit:hover { background: #a91f1f; transform: translateY(-1px); }
.dc-modal .dc-submit:disabled { opacity: .7; transform: none; }
.dc-modal .dc-loader { margin-top: 10px; color: #c62828; font-size: 14px; font-weight: 600; }
.dc-modal .dc-spin {
    display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px;
    border: 2px solid rgba(198, 40, 40, .25); border-top-color: #c62828; border-radius: 50%;
    animation: dc-spin .8s linear infinite;
}
@keyframes dc-spin { to { transform: rotate(360deg); } }
.dc-modal .dc-response { margin-top: 10px; }
.dc-modal .dc-response:empty { display: none; }
.dc-modal .dc-policy { margin-top: 12px; font-size: 12px; line-height: 1.5; color: #777; text-align: center; }
.dc-modal .dc-policy a { color: #c62828; }

@media (max-width: 991px) {
    .dc-modal .modal-dialog { max-width: 720px; }
    .dc-modal .dc-side { padding: 30px 24px 24px; }
    .dc-modal .dc-main { padding: 30px 24px 24px; }
}
@media (max-width: 767px) {
    .dc-modal .modal-dialog { display: flex; align-items: flex-end; min-height: 100%; max-width: none; margin: 0; }
    .dc-modal .modal-content { border-radius: 22px 22px 0 0; max-height: 94vh; overflow-y: auto; }
    .dc-modal .dc-grid { grid-template-columns: 1fr; }
    .dc-modal .dc-side { padding: 24px 20px 20px; border-right: 0; border-bottom: 1px solid #f0e2e2; }
    .dc-modal .dc-pkgname { padding-right: 44px; font-size: 19px; }
    .dc-modal .dc-rate { font-size: 30px; }
    .dc-modal .dc-picks { grid-template-columns: 1fr 1fr; margin-top: 16px; }
    .dc-modal .dc-incl,
    .dc-modal .dc-side-foot { display: none; }
    .dc-modal .dc-main { padding: 22px 20px 22px; }
    .dc-modal .dc-main h3 { padding-right: 0; font-size: 20px; }
    .dc-modal .dc-subtext { margin-bottom: 16px; }
}
@media (max-width: 400px) {
    .dc-modal .dc-picks { grid-template-columns: 1fr; }
}
