:root {
    color-scheme: light;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --text: #172033;
    --muted: #5d687c;
    --border: #cbd5e1;
    --border-strong: #93a4bb;
    --accent: #0f5f8f;
    --accent-dark: #0b4b73;
    --danger: #b42318;
    --danger-soft: #fff1f0;
    --success: #167544;
    --success-soft: #edfdf4;
    --focus: #f6c343;/* 
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.10); */
    font-family: verdana, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;/* 
    background: radial-gradient(circle at top left, #e8f2ff, transparent 34rem), var(--bg); */
    background-color:#FAFAFA;
    color: var(--text);
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
input,
select,
textarea,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-dark);
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.page-shell.narrow {
    width: min(760px, calc(100% - 32px));
}

.hero,
.confirmation-card,
.dashboard-card,
.error-summary,
.service-form {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(203, 213, 225, 0.85);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.hero,
.confirmation-card,
.dashboard-card,
.error-summary {
    padding: clamp(24px, 4vw, 40px);
    margin-bottom: 24px;
}

.hero,
.hero p,
.confirmation-card {
    text-align:center;
    margin-left: auto;
    margin-right: auto;
}

.hero h1,
.confirmation-card h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.hero p,
.confirmation-card p {
    max-width: 72ch;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: clamp(20px, 4vw, 36px);
}

.full-span {
    grid-column: 1 / -1;
}

.field,
.form-card {
    min-width: 0;
}

.form-card {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-alt);
}

legend,
label,
.subline {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    color: var(--text);
}

legend {
    padding: 0 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="file"],
select,
textarea {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
    color: var(--text);
    padding: 13px 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input[type="file"] {
    padding: 12px;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

input::placeholder,
textarea::placeholder {
    color: #8793a5;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(15, 95, 143, 0.13);
}

.service-form.was-validated input:not([type="checkbox"]):not([type="radio"]):valid,
.service-form.was-validated select:valid,
.service-form.was-validated textarea:valid {
    border-color: var(--success);
    background: var(--success-soft);
}

.service-form.was-validated input:not([type="checkbox"]):not([type="radio"]):invalid,
.service-form.was-validated select:invalid,
.service-form.was-validated textarea:invalid,
[aria-invalid="true"] {
    border-color: var(--danger) !important;
    background: var(--danger-soft) !important;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

#inquiry_type-hint {
    text-align: center;
}

.choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
    font-weight: 650;
    cursor: pointer;
}

.choice:hover {
    border-color: var(--border-strong);
}

.choice input {
    width: 1.15em;
    height: 1.15em;
    margin-top: 0.15em;
    accent-color: var(--accent);
}

.choice.stacked {
    align-items: flex-start;
    width: 100%;
}

.hint,
.char-count,
.field-error,
.submit-note {
    margin: 5px 0;
    font-size: 0.92rem;
}

.hint,
.char-count,
.submit-note {
    color: var(--muted);
}

.hint.hidden {
    color:red !important;
    display:none; 
}

.field-error {
    min-height: 1.3em;
    color: var(--danger);
    font-weight: 700;
}

.error-summary {
    border-color: rgba(180, 35, 24, 0.35);
    background: var(--danger-soft);
}

.error-summary h2 {
    margin-top: 0;
}

.error-summary a {
    color: var(--danger);
    font-weight: 750;
}

.uploaded-list {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-alt);
}

.uploaded-title {
    margin: 0 0 8px;
    font-weight: 800;
}

.uploaded-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.uploaded-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.remove-file {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--danger-soft);
    color: var(--danger);
    font-weight: 900;
    text-decoration: none;
    font-size: 1.3rem;
    line-height: 1;
}

.form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 8px;
}

button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border: 0;
    border-radius: 7px;
    background: var(--accent);
    color: #fff;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(15, 95, 143, 0.22);
}

input[type="file"]::file-selector-button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

button:hover,
.button-link:hover,
input[type="file"]::file-selector-button:hover {
    background: var(--accent-dark);
    color: #fff;
}


.reference-box {
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-alt);
    font-size: 1.2rem;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 9px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

.dashboard-table th,
.dashboard-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.dashboard-table th {
    background: var(--surface-alt);
    font-size: 0.9rem;
}

.status-pill {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 850;
    background: var(--surface-alt);
}

.status-sent {
    background: var(--success-soft);
    color: var(--success);
}

.status-failed,
.status-not_sent {
    background: var(--danger-soft);
    color: var(--danger);
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 20px, 100%);
        padding: 20px 0;
    }

    .service-form {
        grid-template-columns: 1fr;
        gap: 18px;
        border-radius: 11px;
    }

    .hero,
    .confirmation-card,
    .dashboard-card,
    .error-summary {
        border-radius: 11px;
    }

    .radio-group,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .choice,
    button,
    .button-link {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
