/* =====================================================
   St. Peter and Paul Suggestion Box - Public pages
   Mobile first: phones are the base layout,
   larger screens get a centred floating card.
   ===================================================== */

:root {
    --navy: #123b6d;
    --navy-dark: #0d2d52;
    --gold: #c9a227;
    --bg: #f4f6f9;
    --card: #ffffff;
    --text: #1f2933;
    --muted: #66707a;
    --border: #d5dbe2;
    --radius: 14px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--card);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
}

.container {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.suggestion-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--card);
}

/* Header: full-bleed navy band on phones */
.header {
    background: var(--navy);
    color: #fff;
    text-align: center;
    padding: 32px 20px 28px;
    padding-top: calc(32px + env(safe-area-inset-top));
}

.header h1 {
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.header h1::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 2px;
    background: var(--gold);
}

.header p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.55;
    max-width: 440px;
    margin: 10px auto 0;
}

.header p:first-of-type {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

form,
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
}

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

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: #fff;
    color: var(--text);
    font-family: inherit;
    /* 16px stops iOS from zooming in on focus */
    font-size: 16px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group select {
    min-height: 52px;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23123b6d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.5;
}

.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(18, 59, 109, 0.14);
}

/* Big thumb-friendly button, pinned to the bottom on phones */
.submit-button {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin-top: auto;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background-color: var(--navy);
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(18, 59, 109, 0.25);
    transition: background-color 0.15s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.submit-button:hover {
    background-color: var(--navy-dark);
}

.submit-button:active {
    transform: scale(0.98);
}

.submit-button:focus-visible {
    outline: 3px solid rgba(18, 59, 109, 0.35);
    outline-offset: 3px;
}

.footer {
    text-align: center;
    padding: 0 20px 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    color: var(--muted);
    font-size: 13px;
}

/* Thank-you page */
.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}


/* =====================================================
   TABLET AND UP: floating card on a soft background
   ===================================================== */

@media (min-width: 640px) {

    body {
        background-color: var(--bg);
    }

    .container {
        max-width: 620px;
        margin: 0 auto;
        padding: 48px 24px;
        justify-content: center;
    }

    .suggestion-card {
        flex: 0 0 auto;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 10px 40px rgba(18, 59, 109, 0.12);
    }

    .header {
        padding: 40px 40px 34px;
    }

    .header h1 {
        font-size: 32px;
    }

    form,
    .card-body {
        padding: 32px 40px;
    }

    .submit-button {
        position: static;
        margin-top: 8px;
        box-shadow: none;
    }

    .footer {
        padding: 0 40px 28px;
    }
}
