/* ============================================
   DICE RIVALS - SUPPORT
   ============================================ */

:root {
    --sky-top: #2A8EE8;
    --sky-bottom: #5DC2F5;
    --water: #6DE4D0;
    --coral: #E04545;
    --coral-dark: #C03030;
    --gold: #F5C518;
    --gold-dark: #DBA810;
    --green: #5AB842;
    --text: #2C3E50;
    --text-light: #4A6070;
    --card-bg: rgba(255, 255, 255, 0.92);
    --card-border: rgba(255, 255, 255, 0.6);
    --card-shadow: 0 4px 20px rgba(0, 60, 120, 0.15);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 50%, var(--water) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Decorative clouds */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    z-index: 0;
    pointer-events: none;
}

body::before {
    width: 300px;
    height: 120px;
    top: 60px;
    right: -60px;
    filter: blur(30px);
}

body::after {
    width: 250px;
    height: 100px;
    top: 200px;
    left: -80px;
    filter: blur(25px);
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    position: relative;
    z-index: 1;
}

/* Logo */
.logo {
    display: block;
    width: min(220px, 50vw);
    height: auto;
    margin: 0 auto 0.5rem;
    position: relative;
}

/* Page title */
h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.35rem;
    color: #fff;
    text-align: center;
    text-shadow:
        0 2px 0 var(--coral-dark),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

.subtitle {
    text-align: center;
    color: #fff;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 4px rgba(0, 60, 120, 0.35);
}

/* Sections as cards */
section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(8px);
}

/* Section headings */
h2 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    color: var(--coral);
}

p {
    margin-bottom: 0.6rem;
    color: var(--text-light);
}

p:last-child {
    margin-bottom: 0;
}

strong {
    color: var(--text);
    font-weight: 600;
}

a {
    color: var(--coral);
    font-weight: 600;
}

/* Lists */
ul {
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    color: var(--text-light);
}

ul:last-child {
    margin-bottom: 0;
}

li {
    margin-bottom: 0.35rem;
}

li:last-child {
    margin-bottom: 0;
}

li strong {
    color: var(--text);
}

/* ============================================
   FORM
   ============================================ */

.form-group {
    margin-bottom: 1.1rem;
}

label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

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

input,
select,
textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text);
    background: #F5F9FC;
    border: 2px solid #DCE7EF;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #9AAEBC;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 4px rgba(224, 69, 69, 0.12);
    background: #fff;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232C3E50' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    padding-right: 3rem;
}

/* Chunky game-style submit button */
.btn-submit {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(180deg, #EC5A5A 0%, var(--coral) 100%);
    border: none;
    border-radius: 14px;
    box-shadow:
        0 5px 0 var(--coral-dark),
        0 8px 18px rgba(0, 60, 120, 0.25);
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.2s ease;
}

.btn-submit:hover {
    filter: brightness(1.06);
}

.btn-submit:active {
    transform: translateY(4px);
    box-shadow:
        0 1px 0 var(--coral-dark),
        0 3px 10px rgba(0, 60, 120, 0.25);
}

.btn-submit:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* Hidden honeypot field */
.hidden-field {
    display: none;
}

/* Submit failure message, revealed by the script when a submission does not go
   through. [hidden] needs its own rule because the block sets display below. */
.form-error {
    display: block;
    margin-top: 1.25rem;
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    border: 2px solid var(--coral-dark);
    background: rgba(236, 90, 90, 0.12);
    color: var(--coral-dark);
    font-weight: 600;
    line-height: 1.45;
}

.form-error[hidden] {
    display: none;
}

/* A submission already in flight: readable, but clearly inert. */
.btn-submit:disabled {
    cursor: not-allowed;
    filter: grayscale(0.4);
    opacity: 0.75;
    transform: none;
}

/* ============================================
   THANK-YOU PAGE
   ============================================ */

.thanks-card {
    text-align: center;
    margin-top: 1.25rem;
    padding: 2.5rem 1.5rem;
}

.thanks-check {
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-bottom: 0.75rem;
    color: #fff;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 4px 0 #46912f;
}

/* ============================================
   FOOTER
   ============================================ */

.page-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 60, 120, 0.3);
}

.page-footer a {
    color: #fff;
    text-decoration: underline;
}

.footer-links {
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    justify-content: center;
}

/* Mobile refinements */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem 0.75rem 3rem;
    }

    section {
        padding: 1.25rem 1rem;
        border-radius: 14px;
    }
}
