/* ================================
   HOW TO ORDER (page-templates/how-to-order.php)
   ================================ */

.dtf-hto .dtf-section {
    background: var(--dtf-white);
}

.dtf-hto__hero {
    padding: 56px 0 40px;
}

.dtf-hto__hero .dtf-wrap {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: center;
}

.dtf-hto__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dtf-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dtf-hto__eyebrow svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.dtf-hto__title {
    color: var(--dtf-black);
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 14px 0 16px;
}

.dtf-hto__lead {
    color: var(--dtf-muted);
    font-size: 18px;
    line-height: 1.55;
    margin: 0 0 28px;
}

.dtf-hto__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dtf-hto .dtf-btn svg {
    width: 18px;
    height: 18px;
}

.dtf-hto__btn-alt,
.dtf-hto__btn-alt:hover {
    background: var(--dtf-white);
    border: 1px solid var(--dtf-line);
    color: var(--dtf-ink) !important;
}

.dtf-hto__btn-alt:hover {
    border-color: var(--dtf-red);
    color: var(--dtf-red) !important;
}

/* Player: 16:9 cut on wide screens, 9:16 cut on phones (the script picks one). */
.dtf-hto__player {
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 60px rgba(17, 17, 17, 0.16), 0 0 0 1px var(--dtf-line);
}

.dtf-hto__video {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}

.dtf-hto__video--wide { aspect-ratio: 16 / 9; }
.dtf-hto__video--tall { aspect-ratio: 9 / 16; display: none; }

/* Steps */
.dtf-hto__steps {
    padding: 40px 0 78px;
}

.dtf-hto__head {
    margin: 0 0 24px;
}

.dtf-hto__h2 {
    color: var(--dtf-black);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0 0 8px;
}

.dtf-hto__head p,
.dtf-hto__cta p {
    color: var(--dtf-muted);
    font-size: 16px;
    margin: 0;
}

.dtf-hto__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dtf-hto__stepbtn,
.dtf-hto__stepbtn:hover,
.dtf-hto__stepbtn:focus,
.dtf-hto__stepbtn:active {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    width: 100%;
    height: 100%;
    padding: 18px;
    background: var(--dtf-white);
    border: 1px solid var(--dtf-line);
    border-radius: 3px;
    color: var(--dtf-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dtf-hto__stepbtn:hover,
.dtf-hto__step.is-current .dtf-hto__stepbtn {
    border-color: rgba(225, 20, 33, 0.35);
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
}

.dtf-hto__stepbtn:focus-visible {
    outline: 2px solid var(--dtf-red);
    outline-offset: 2px;
}

.dtf-hto__num {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--dtf-red);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.dtf-hto__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--dtf-red);
}

.dtf-hto__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dtf-hto__steptitle {
    color: var(--dtf-black);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.dtf-hto__text {
    color: var(--dtf-muted);
    font-size: 14.5px;
    line-height: 1.5;
}

.dtf-hto__time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f6f6f7;
    color: var(--dtf-ink);
    font-size: 12.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dtf-hto__time svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
}

/* Facts */
.dtf-hto__facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 40px 0 0;
}

.dtf-hto__fact {
    padding: 20px;
    border: 1px solid var(--dtf-line);
    border-radius: 3px;
    background: #fafafa;
}

.dtf-hto__facticon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(225, 20, 33, 0.08);
    color: var(--dtf-red);
}

.dtf-hto__fact h3 {
    color: var(--dtf-black);
    font-size: 16px;
    font-weight: 800;
    margin: 12px 0 6px;
}

.dtf-hto__fact p {
    color: var(--dtf-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Closing call to action */
.dtf-hto__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0 0;
    padding: 28px 32px;
    border-radius: 4px;
    background: var(--dtf-black);
}

.dtf-hto__cta .dtf-hto__h2 { color: #fff; }
.dtf-hto__cta p { color: rgba(255, 255, 255, 0.7); }

.dtf-hto__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 22px;
}

.dtf-hto__contact a:not(.dtf-btn) {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.dtf-hto__contact a:not(.dtf-btn):hover {
    color: #ff6b74;
}

@media (max-width: 1000px) {
    .dtf-hto__hero .dtf-wrap { grid-template-columns: 1fr; gap: 28px; }
    .dtf-hto__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .dtf-hto__hero { padding: 32px 0 24px; }
    .dtf-hto__list { grid-template-columns: 1fr; }
    .dtf-hto__video--wide { display: none; }
    .dtf-hto__video--tall { display: block; max-height: 80vh; margin: 0 auto; width: auto; max-width: 100%; }
    .dtf-hto__player { background: #000; }
    .dtf-hto__stepbtn,
    .dtf-hto__stepbtn:hover,
    .dtf-hto__stepbtn:focus,
    .dtf-hto__stepbtn:active { grid-template-columns: auto minmax(0, 1fr) auto; padding: 16px; }
    .dtf-hto__icon { display: none; }
    .dtf-hto__cta { padding: 24px 20px; }
}

@media (max-width: 480px) {
    .dtf-hto__facts { grid-template-columns: 1fr; }
}
