/* The /support contact form (CF7 markup from the page body), restyled to match
   the comment form in wp.css: rounded fields, small eyebrow labels, white in
   light mode and translucent grey in dark. Loaded by src/lib/render.js with
   public/js/support.js, which also adds the "Photo shoot" section. */

.wpcf7 .wpcf7-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
    margin-top: 2rem;
}
.wpcf7 .wpcf7-form > * { flex-basis: 100%; }
.wpcf7 .wpcf7-form > p { margin: 0 0 1rem; }

/* Name and email share a row (tagged by support.js) */
.wpcf7 .wpcf7-form > p.tx-half { flex-basis: 0; flex-grow: 1; min-width: 200px; }

.wpcf7 .wpcf7-form label,
.wpcf7 .tx-shoot-label {
    display: block;
    font-size: 0.78rem;
    padding-left: 4px;
    color: color-mix(in srgb, currentColor 75%, transparent);
}
/* The labels wrap their fields, so the field's own text goes back to full strength */
.wpcf7 .wpcf7-form-control-wrap { color: var(--global--color-primary); }
.wpcf7 .wpcf7-form label br { display: none; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 0.35em; }

.wpcf7 .wpcf7-form input[type=text],
.wpcf7 .wpcf7-form input[type=email],
.wpcf7 .wpcf7-form input[type=date],
.wpcf7 .wpcf7-form select,
.wpcf7 .wpcf7-form textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    border: 1px solid rgba(128, 128, 128, .38);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, .75);
    color: inherit;
    padding: 10px 16px;
    font-size: 1rem;
    line-height: 1.5;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.wpcf7 .wpcf7-form textarea { border-radius: 12px; min-height: 9em; height: 12em; resize: vertical; }
.wpcf7 .wpcf7-form select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 40px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
}
.wpcf7 .wpcf7-form input:focus,
.wpcf7 .wpcf7-form select:focus,
.wpcf7 .wpcf7-form textarea:focus {
    border-color: rgba(128, 128, 128, .75);
    box-shadow: 0 0 0 3px rgba(128, 128, 128, .15);
    outline: none;
}
.wpcf7 .wpcf7-form ::placeholder { color: inherit; opacity: .5; }

.is-dark-theme .wpcf7 .wpcf7-form input[type=text],
.is-dark-theme .wpcf7 .wpcf7-form input[type=email],
.is-dark-theme .wpcf7 .wpcf7-form input[type=date],
.is-dark-theme .wpcf7 .wpcf7-form select,
.is-dark-theme .wpcf7 .wpcf7-form textarea {
    background-color: rgba(128, 128, 128, .06);
    color: inherit;
}
.is-dark-theme .wpcf7 .wpcf7-form input[type=date] { color-scheme: dark; }
.is-dark-theme .wpcf7 .wpcf7-form select option { background: #1d2026; }

.wpcf7 .wpcf7-form .wpcf7-submit {
    border-radius: 10px;
    padding: 12px 32px;
    cursor: pointer;
}
.wpcf7 .wpcf7-form.submitting .wpcf7-submit { opacity: .6; }

.wpcf7 .wpcf7-not-valid-tip { display: block; font-size: 0.8rem; color: #d33; margin: 0.35em 0 0 4px; }
.wpcf7 .wpcf7-form .wpcf7-not-valid { border-color: #d33; }
.wpcf7 .wpcf7-response-output:empty { display: none; }
.wpcf7 .wpcf7-form .wpcf7-response-output {
    margin: 0.5rem 0 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: rgba(128, 128, 128, .1);
    font-size: 0.95rem;
}
.wpcf7 .wpcf7-form.sent .wpcf7-response-output { background: rgba(70, 180, 80, .15); }
.wpcf7 .wpcf7-form.invalid .wpcf7-response-output,
.wpcf7 .wpcf7-form.failed .wpcf7-response-output,
.wpcf7 .wpcf7-form.spam .wpcf7-response-output { background: rgba(221, 51, 51, .12); }

/* Photo shoot: a card that opens under the topic when "Photo shoot" is picked */
.wpcf7 .tx-shoot {
    box-sizing: border-box;
    margin: 0 0 1.25rem;
    padding: 18px 18px 6px;
    border: 1px solid rgba(128, 128, 128, .25);
    border-radius: 14px;
    background: rgba(255, 255, 255, .75);
}
.is-dark-theme .wpcf7 .tx-shoot { background: rgba(128, 128, 128, .06); }
.wpcf7 .tx-shoot[hidden] { display: none; }
.wpcf7 .tx-shoot-row { margin: 0 0 14px; }
.wpcf7 .tx-shoot-pair { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.wpcf7 .tx-shoot-pair > .tx-shoot-row { flex: 1 1 200px; }

.wpcf7 .tx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.45em; }
.wpcf7 .tx-chips label {
    position: relative;
    color: var(--global--color-primary);
    padding: 0;
    font-size: 0.9rem;
    opacity: 1;
}
.wpcf7 .tx-chips input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.wpcf7 .tx-chips span {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid rgba(128, 128, 128, .38);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.is-dark-theme .wpcf7 .tx-chips span { background: rgba(128, 128, 128, .08); }
.wpcf7 .tx-chips span:hover { border-color: rgba(128, 128, 128, .75); }
.wpcf7 .tx-chips input:checked + span,
.is-dark-theme .wpcf7 .tx-chips input:checked + span {
    background: #697efe;
    border-color: #697efe;
    color: #fff;
}
.wpcf7 .tx-chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(105, 126, 254, .35); }

.wpcf7 .tx-check {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.85rem !important;
}
.wpcf7 .wpcf7-form .tx-check input {
    -webkit-appearance: checkbox;
    appearance: auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #697efe;
}
.wpcf7 .wpcf7-form .tx-check input::after { content: none; }

.wpcf7 .tx-shoot-label em { font-style: italic; opacity: .7; margin-left: 4px; }

/* Budget slider (after arko.nyc's pricing slider): --f is the thumb's position 0–1 */
.wpcf7 .tx-budget { --thumb: 26px; --accent: #697efe; margin-bottom: 22px; }
.wpcf7 .tx-budget-amount {
    margin: 2px 0 0 4px;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    transition: opacity .2s;
}
.wpcf7 .tx-budget-amount { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.wpcf7 .tx-evil { width: 50px; height: auto; border-radius: 8px; transform: scale(0) rotate(-20deg); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.wpcf7 .tx-budget.is-max .tx-evil { transform: scale(1) rotate(0); }
.wpcf7 .tx-nod { display: inline-block; width: 0; font-size: 2.2rem; line-height: 1; transform: scale(0) rotate(-20deg); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), width .3s; }
.wpcf7 .tx-nod.is-on { width: 1.2em; transform: scale(1) rotate(0); }

/* "Where?" place suggestions */
.wpcf7 [data-name], .wpcf7 .tx-shoot .wpcf7-form-control-wrap { position: relative; }
.wpcf7 .tx-suggest {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    margin: 0;
    padding: 4px;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(128, 128, 128, .38);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.is-dark-theme .wpcf7 .tx-suggest { background: #1d2026; }
.wpcf7 .tx-suggest[hidden] { display: none; }
.wpcf7 .tx-suggest li {
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 0.9rem;
    line-height: 1.35;
    cursor: pointer;
}
.wpcf7 .tx-suggest li:hover,
.wpcf7 .tx-suggest li[aria-selected=true] { background: rgba(105, 126, 254, .14); }
.wpcf7 .wpcf7-form .tx-budget input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: grab;
}
.wpcf7 .wpcf7-form .tx-budget input[type=range]:focus { outline: none; box-shadow: none; }
.wpcf7 .tx-budget input[type=range]::-webkit-slider-runnable-track {
    height: 10px;
    border-radius: 999px;
    --fill: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--f));
    background: linear-gradient(to right, var(--accent) var(--fill), rgba(128, 128, 128, .25) var(--fill));
}
.wpcf7 .tx-budget input[type=range]::-moz-range-track { height: 10px; border-radius: 999px; background: rgba(128, 128, 128, .25); }
.wpcf7 .tx-budget input[type=range]::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--accent); }
.wpcf7 .tx-budget input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: var(--thumb);
    height: var(--thumb);
    margin-top: calc((10px - var(--thumb)) / 2);
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 6px rgba(105, 126, 254, .2), 0 3px 10px rgba(0, 0, 0, .25);
    transition: box-shadow .2s;
}
.wpcf7 .tx-budget input[type=range]::-moz-range-thumb {
    width: var(--thumb);
    height: var(--thumb);
    box-sizing: border-box;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 6px rgba(105, 126, 254, .2), 0 3px 10px rgba(0, 0, 0, .25);
}
.wpcf7 .tx-budget input[type=range]:hover::-webkit-slider-thumb,
.wpcf7 .tx-budget input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 9px rgba(105, 126, 254, .3), 0 3px 10px rgba(0, 0, 0, .25); }
/* Stop labels under the track, lined up with the thumb's centre at each amount */
.wpcf7 .tx-budget-stops { position: relative; list-style: none; padding: 0; margin: 2px 0 0; height: 22px; }
.wpcf7 .tx-budget-stops li { position: absolute; top: 0; left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--at)); transform: translateX(-50%); }
.wpcf7 .tx-budget-stops li:first-child { transform: translateX(calc(var(--thumb) / -2)); }
.wpcf7 .tx-budget-stops li:last-child { transform: translateX(calc(-100% + var(--thumb) / 2)); }
.wpcf7 .wpcf7-form .tx-budget-stops button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    opacity: .45;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    min-height: 0;
    transition: opacity .2s;
}
.wpcf7 .wpcf7-form .tx-budget-stops button.is-on { opacity: 1; }
.wpcf7 .wpcf7-form .tx-budget-stops button:hover { color: var(--accent); opacity: 1; }
