/* Share Your Story (testimonial) page */
.tm-hero .tm-cav { margin: 16px 0 0; font-family: 'Caveat', cursive; font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; color: #8EC5FF; }

/* 5-step story */
.tm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.tm-step { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px 26px; position: relative; overflow: hidden; }
.tm-step::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--gold); }
.tm-n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.tm-step h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.25; font-weight: 700; }
.tm-step p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }

/* Example + key rules */
.tm-two { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .tm-two { grid-template-columns: 1fr; } }
.tm-quote { background: var(--navy); color: var(--white); border-radius: 24px; padding: 34px 34px 30px; position: relative; }
.tm-quote .tm-tag { display: inline-block; background: var(--gold); color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.tm-quote blockquote { margin: 0; font-size: 17px; line-height: 1.75; font-weight: 300; color: #E8EFF8; }
.tm-quote blockquote::before { content: '“'; display: block; font-family: Georgia, serif; font-size: 72px; line-height: .6; color: var(--gold); margin-bottom: 8px; }
.tm-quote .tm-by { margin: 18px 0 0; font-family: 'Caveat', cursive; font-weight: 700; font-size: 28px; color: #8EC5FF; }
.tm-rules { background: var(--white); border: 2px solid var(--navy); border-radius: 24px; padding: 30px 28px; }
.tm-rules h3 { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.tm-rule { display: flex; gap: 14px; align-items: flex-start; }
.tm-rule + .tm-rule { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.tm-rule .ic { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #FDECEC; color: #C0392B; display: flex; align-items: center; justify-content: center; }
.tm-rule p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.tm-rule strong { display: block; color: var(--navy); font-size: 16px; margin-bottom: 2px; }

/* Builder */
.tm-build-intro { display: flex; gap: 18px; align-items: flex-start; background: var(--soft-2); border-radius: 20px; padding: 22px 24px; margin: 0 0 28px; }
.tm-build-intro .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.tm-build-intro p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--navy); }
.tm-form { display: grid; gap: 18px; }
.tm-card { border: 1px solid var(--line); border-radius: 22px; padding: 24px 24px 26px; background: var(--white); }
.tm-card-h { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.tm-card-h .tm-n { margin: 0; width: 36px; height: 36px; font-size: 16px; }
.tm-card-h h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.25; }
.tm-card-h h3 span { display: block; font-size: 13.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.tm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.tm-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px) { .tm-grid { grid-template-columns: 1fr; } .tm-card { padding: 20px 18px 22px; } }
.tm-f label, .tm-f .lbl { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--navy); }
.tm-f .opt { font-weight: 400; color: var(--muted); }
.tm-f input[type="text"], .tm-f textarea, .tm-f select { width: 100%; font-family: inherit; font-size: 15px; color: var(--navy); background: var(--soft); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, background .15s, box-shadow .15s; }
.tm-f textarea { min-height: 84px; resize: vertical; line-height: 1.55; }
.tm-f select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300274C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.tm-f input::placeholder, .tm-f textarea::placeholder { color: #8796A8; }
.tm-f input:focus, .tm-f textarea:focus, .tm-f select:focus { outline: none; border-color: var(--blue); background-color: var(--white); box-shadow: 0 0 0 3px rgba(47, 101, 167, .15); }
.tm-hint { margin: 7px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.tm-hint.warn { color: #8A5A00; }
.tm-len { display: flex; flex-wrap: wrap; gap: 10px; }
.tm-len label { margin: 0; }
.tm-len input { position: absolute; opacity: 0; pointer-events: none; }
.tm-len span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--soft); font-size: 14px; font-weight: 600; cursor: pointer; }
.tm-len input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.tm-len input:focus-visible + span { box-shadow: 0 0 0 3px rgba(47, 101, 167, .3); }

.tm-go { background: var(--navy); border-radius: 24px; padding: 28px 28px 30px; color: var(--white); }
.tm-go-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 18px; }
.tm-go .tm-f { flex: 1 1 280px; max-width: 420px; }
.tm-go .tm-f label { color: var(--white); }
.tm-go .tm-f select { background-color: var(--white); border-color: var(--white); }
.tm-go .tm-f select.is-error { border-color: #FF8A80; box-shadow: 0 0 0 3px rgba(255, 138, 128, .45); }
.tm-err { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: #FFB4AB; display: flex; align-items: center; gap: 8px; }
.tm-err[hidden] { display: none; }
.tm-go .btn { white-space: nowrap; }
.tm-go-note { margin: 16px 0 0; font-size: 13.5px; line-height: 1.6; color: #B9C9DD; }
.tm-shake { animation: tm-shake .4s; }
@keyframes tm-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.tm-out { border: 2px solid var(--gold); border-radius: 24px; padding: 26px 26px 28px; background: #FFFCEB; }
.tm-out[hidden] { display: none; }
.tm-out h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.tm-out .tm-status { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--navy); }
.tm-out ol { margin: 0 0 18px; padding-left: 22px; font-size: 15px; line-height: 1.7; color: var(--navy); }
.tm-out textarea { width: 100%; min-height: 220px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55; color: var(--navy); background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; resize: vertical; }
.tm-out .btn-row { margin-top: 14px; }
.tm-out .tm-tip { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.tm-form > *, .tm-card, .tm-grid > * { min-width: 0; }
.tm-out, .tm-out textarea { max-width: 100%; }
@media (max-width: 640px) { .tm-go .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; } .tm-go .tm-f { max-width: none; } }
