/* ─────────────────────────────────────────────────────────────────
   EquestrianArt.co.uk — Commission Page
   Premium, clean, responsive
   ───────────────────────────────────────────────────────────────── */

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f5;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-gold: #333333;
    --color-gold-light: #555555;
    --color-accent: #111111;
    --color-white: #ffffff;
    --color-border: #d5d5d5;
    --color-error: #a83232;
    --color-error-bg: #fdf2f2;
    --font-heading: 'Kaisei Decol', Georgia, serif;
    --font-body: 'Assistant', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1100px;
    --radius: 6px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.75;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Top Bar ─────────────────────────────────────────────────── */

.top-bar {
    background: var(--color-accent);
    padding: 10px 24px;
    text-align: center;
}

.top-bar-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.top-bar-link:hover {
    color: #fff;
}

/* ─── Hero ────────────────────────────────────────────────────── */

.hero {
    text-align: center;
    padding: 80px 24px 60px;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-sub {
    font-size: 1.45rem;
    color: var(--color-text);
    max-width: 640px;
    margin: 0 auto 32px;
    font-weight: 500;
    line-height: 1.6;
}

.success-message h1 {
    margin-bottom: 20px;
}

/* ─── Buttons ─────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--radius);
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-white);
    padding: 14px 36px;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background: var(--color-gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-green {
    background: #2e7d32;
    color: var(--color-white);
    padding: 14px 36px;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.btn-green:hover {
    background: #388e3c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-submit {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 32px auto 12px;
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* ─── Sections ────────────────────────────────────────────────── */

.section {
    padding: 64px 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-cta {
    text-align: center;
    padding: 72px 0;
    background: var(--color-accent);
}

.section-cta h2 {
    color: var(--color-white);
    margin-bottom: 12px;
}

.cta-sub {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 32px;
    text-align: center;
}

/* ─── Steps ───────────────────────────────────────────────────── */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.step h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.step p {
    color: var(--color-text-light);
    font-size: 1rem;
}

/* ─── Feature List ────────────────────────────────────────────── */

.feature-list {
    list-style: none;
    max-width: 700px;
    margin: 0 auto 24px;
}

.feature-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    border-bottom: 1px solid var(--color-border);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: 700;
}

.note {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 16px;
}

/* ─── Prose ───────────────────────────────────────────────────── */

.prose {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.prose p {
    margin-bottom: 16px;
    color: var(--color-text-light);
    font-size: 1.15rem;
    line-height: 1.8;
}

/* ─── Persona Grid ────────────────────────────────────────────── */

.persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.persona-card {
    cursor: pointer;
    position: relative;
}

.persona-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.persona-card-inner {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.persona-card:hover .persona-card-inner {
    border-color: var(--color-gold-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.persona-card.selected .persona-card-inner {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
}

.persona-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.persona-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.persona-card:hover .persona-image img {
    transform: scale(1.03);
}

.persona-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.persona-info h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.persona-technique {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-gold);
    background: rgba(0, 0, 0, 0.06);
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.persona-desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
    flex: 1;
}

.persona-link {
    font-size: 0.8rem;
    color: var(--color-gold);
    text-decoration: none;
    margin-top: 8px;
    font-weight: 500;
}

.persona-link:hover {
    text-decoration: underline;
}

/* ─── Form ────────────────────────────────────────────────────── */

.form-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px 36px;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 24px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--color-accent);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.required {
    color: var(--color-error);
}

.optional {
    font-weight: 400;
    color: var(--color-text-light);
    font-size: 0.85rem;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

input[type="file"] {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-light);
}

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

.photo-preview {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.photo-preview img {
    max-width: 160px;
    max-height: 120px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    object-fit: cover;
}

.preview-error {
    color: var(--color-error);
    font-size: 0.9rem;
}

.form-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 8px;
}

/* ─── Selected Persona Display ────────────────────────────────── */

.selected-persona-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-white);
    border: 2px solid var(--color-gold);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.selected-persona-card img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
}

.selected-persona-info {
    flex: 1;
    min-width: 0;
}

.selected-persona-info strong {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-accent);
}

.selected-persona-info .persona-technique {
    margin-left: 8px;
    vertical-align: middle;
}

.selected-persona-info p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

.btn-change-style {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gold);
    background: none;
    border: 1px solid var(--color-gold);
    border-radius: var(--radius);
    padding: 6px 14px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}

.btn-change-style:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

/* ─── Persona Picker Section ──────────────────────────────────── */

.persona-picker {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.persona-picker h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 8px;
}

.picker-hint {
    text-align: center;
    margin-bottom: 24px;
}

/* Disabled submit state — pointer-events: none lets clicks pass through to the wrapper */
.btn-submit:disabled {
    opacity: 0.5;
    transform: none;
    box-shadow: none;
    pointer-events: none;
}

/* ─── Drop Zone ──────────────────────────────────────────────── */

.drop-zone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.drop-zone:hover {
    border-color: var(--color-gold-light);
    background: rgba(0, 0, 0, 0.015);
}

.drop-zone.drag-over {
    border-color: var(--color-gold);
    background: rgba(0, 0, 0, 0.03);
}

.drop-zone-text {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.drop-zone-btn {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-gold);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.drop-zone-btn:hover {
    color: var(--color-gold-light);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ─── Persona Validation ─────────────────────────────────────── */

.submit-wrap {
    position: relative;
    max-width: 420px;
    margin: 32px auto 12px;
    cursor: pointer;
}

.submit-wrap .btn-submit {
    margin: 0;
}

.persona-nudge {
    color: var(--color-error);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 8px;
    display: none;
}

.persona-nudge.visible {
    display: block;
}

.selected-persona.highlight {
    border: 2px solid var(--color-error);
    border-radius: var(--radius);
    padding: 12px;
    animation: pulse-highlight 0.6s ease 2;
}

@keyframes pulse-highlight {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 50, 50, 0); }
    50% { box-shadow: 0 0 0 4px rgba(168, 50, 50, 0.15); }
}

/* ─── Flash Messages ──────────────────────────────────────────── */

.flash {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    font-size: 0.95rem;
}

.flash-error {
    background: var(--color-error-bg);
    color: var(--color-error);
    border: 1px solid rgba(168, 50, 50, 0.2);
}

/* ─── Tips Grid ───────────────────────────────────────────────── */

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto 20px;
}

.tip {
    text-align: center;
}

.tip strong {
    display: block;
    font-size: 0.95rem;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.tip p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ─── Pricing Table ───────────────────────────────────────────── */

.pricing-table {
    max-width: 420px;
    margin: 0 auto;
    border-collapse: collapse;
    width: 100%;
}

.pricing-table td {
    padding: 12px 20px;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.pricing-table td:last-child {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-highlight td {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent);
    background: rgba(0, 0, 0, 0.04);
}

/* ─── Memorial ────────────────────────────────────────────────── */

.memorial {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.memorial p {
    color: var(--color-text-light);
    font-size: 1.15rem;
    line-height: 1.8;
}

/* ─── Footer ──────────────────────────────────────────────────── */

.footer {
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer p {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.footer a {
    color: var(--color-gold);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ─── Responsive ──────────────────────────────────────────────── */

@media (max-width: 900px) {
    .persona-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 48px 20px 40px;
    }

    .section {
        padding: 48px 0;
    }

    .persona-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 28px 20px;
    }

    .btn-primary {
        padding: 14px 24px;
    }

    .pricing-table {
        max-width: 100%;
    }
}
