/* Guest photo upload. The invitation's look, kept standalone so this folder can be dropped on any
   PHP hosting on its own: the colours below are the same literals app.css uses, except for the
   greys on small text, which were too faint on the mint card to read. */

:root {
    --teal: #037779;
    --teal-dark: #005759;
    --teal-soft: #7fa8a7;
    --mint: #CAE6E6;
    --ink: #34495e;
    --muted: #3f5a5a;          /* app.css uses #7f8c8d; on #CAE6E6 that is only 2.6:1 */
    --muted-on-white: #5c7070;
    --hairline: #ecf0f1;
    --border: #dfe6e6;
    --tile: #e4ecec;
    --green: #21824B;
    --green-dark: #166437;
    --green-bg: #e6f4ec;
    --green-ink: #1c4030;
    --amber: #E0A34A;
    --amber-dark: #8A5A10;
    --amber-bg: #fdf3e0;
    --amber-ink: #4a3b26;
    --red: #D03B2B;
    --red-dark: #8E2015;
    --red-bg: #fdeceb;
    --red-ink: #4a2f2b;
    --display-font: 'Sirivennela', sans-serif;
    --body-font: 'Gotu', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--body-font);
    font-weight: 200;
    color: var(--ink);
    background: linear-gradient(135deg, #CAE6E6 0%, #037779 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.card {
    width: 100%;
    max-width: 640px;
    background: var(--mint);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.logo {
    align-self: center;
    height: 92px;
    width: auto;
    pointer-events: none;
    user-select: none;
}

.panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* .is-hidden carries the hiding when JavaScript toggles panels; the [hidden] attribute does it
   for the server-rendered state. Both have to win over the flex above. */
.is-hidden,
[hidden] {
    display: none !important;
}

h1 {
    font-family: var(--display-font);
    font-weight: 300;
    font-size: 2.4rem;
    line-height: 1.1;
    letter-spacing: 1px;
    text-align: center;
    color: var(--teal);
}

.lead {
    text-align: center;
    font-size: .95rem;
    line-height: 1.55;
}

/* ---------------------------------------------------------------- language switcher */

.langs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lang {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 15px;
    border: 2px solid #fff;
    background: #fff;
    border-radius: 20px;
    font-size: .85rem;
    color: var(--muted);
    text-decoration: none;
    transition: all .25s ease;
}

.lang:hover {
    border-color: var(--teal);
    color: var(--teal-dark);
}

.lang.is-active {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

/* ---------------------------------------------------------------- form */

form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

label,
.label {
    font-size: .9rem;
    color: var(--muted);
}

input[type="text"] {
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    width: 100%;
    min-height: 50px;
    padding: 13px 14px;
    background: #fff;
    border: 2px solid var(--hairline);
    border-radius: 8px;
    transition: border-color .25s ease, box-shadow .25s ease;
}

input[type="text"]::placeholder {
    color: var(--muted-on-white);
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(3, 119, 121, .18);
}

input[type="text"][aria-invalid="true"] {
    border-color: var(--red);
}

.help {
    font-size: .78rem;
    line-height: 1.45;
    color: var(--muted);
}

.fineprint {
    text-align: center;
    font-size: .78rem;
    line-height: 1.45;
    color: var(--muted);
}

/* Off-screen rather than display:none, so a bot's form parser still finds it. */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

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

/* ---------------------------------------------------------------- drop zone */

.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 28px 18px;
    background: rgba(255, 255, 255, .72);
    border: 2px dashed var(--teal-soft);
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.dropzone:hover {
    border-color: var(--teal);
}

.dropzone.is-dragging {
    background: #fff;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(3, 119, 121, .18);
}

.dropzone-icon {
    width: 38px;
    height: 38px;
    color: var(--teal-dark);
}

.dropzone-title {
    font-size: 1.05rem;
    color: var(--teal-dark);
}

.dropzone-hint {
    font-size: .78rem;
    line-height: 1.45;
    color: var(--muted);
    max-width: 34ch;
}

/* ---------------------------------------------------------------- queue */

.queue-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: .9rem;
}

.linkish {
    font-family: inherit;
    font-size: .85rem;
    min-height: 36px;
    padding: 8px 4px;
    background: none;
    border: 0;
    color: var(--teal-dark);
    text-decoration: underline;
    cursor: pointer;
}

.queue {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.queue:empty {
    display: none;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 2px solid var(--hairline);
    border-radius: 10px;
    padding: 10px 12px;
}

.queue-item.is-active {
    border-color: var(--teal);
}

.queue-item.is-done {
    background: rgba(255, 255, 255, .6);
}

.queue-item.is-failed {
    border-color: var(--red);
}

.queue-thumb {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--tile) center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-on-white);
}

.queue-thumb svg {
    width: 20px;
    height: 20px;
}

.queue-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.queue-name {
    font-size: .88rem;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queue-meta {
    font-size: .75rem;
    color: var(--muted);
}

.queue-item.is-failed .queue-meta {
    color: var(--red-dark);
}

.queue-bar {
    height: 5px;
    border-radius: 999px;
    background: #dbe6e6;
    overflow: hidden;
}

.queue-bar > span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--teal);
    border-radius: 999px;
    transition: width .2s ease;
}

.queue-action {
    flex: 0 0 auto;
    font-family: inherit;
    font-size: .8rem;
    min-height: 36px;
    padding: 8px 12px;
    background: #fff;
    color: var(--teal-dark);
    border: 2px solid var(--teal-soft);
    border-radius: 8px;
    cursor: pointer;
}

.queue-tick {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--green-dark);
}

/* ---------------------------------------------------------------- progress */

.progress-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, .72);
    border-radius: 12px;
    padding: 16px;
}

.progress-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: .92rem;
}

.progress {
    height: 8px;
    border-radius: 999px;
    background: #dbe6e6;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: var(--teal);
    border-radius: 999px;
    transition: width .2s ease;
}

/* ---------------------------------------------------------------- buttons */

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    min-height: 54px;
    padding: 15px;
    background: var(--teal);
    color: #fff;
    border: 0;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.btn:disabled,
.btn[aria-disabled="true"] {
    background: var(--teal-soft);
    cursor: default;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    min-height: 50px;
    background: #fff;
    color: var(--teal-dark);
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--teal);
}

/* ---------------------------------------------------------------- banners */

.banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: .85rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.banner svg {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin-top: 2px;
}

.banner strong {
    font-weight: 400;
}

.banner-error {
    background: var(--red-bg);
    border: 2px solid var(--red);
    color: var(--red-ink);
}

.banner-error svg {
    color: var(--red-dark);
}

.banner-warn {
    background: var(--amber-bg);
    border: 2px solid var(--amber);
    color: var(--amber-ink);
}

.banner-warn svg {
    color: var(--amber-dark);
}

.banner-success {
    background: var(--green-bg);
    border: 2px solid var(--green);
    color: var(--green-ink);
}

.banner-success svg {
    color: var(--green-dark);
}

/* ---------------------------------------------------------------- confirmation */

.done {
    align-items: center;
    text-align: center;
}

/* The greeting carries a guest's name, and Sirivennela has no accented glyphs — "Müller" or
   "Rodríguez" would come out half in a substituted face. The whole line is set in the body font so
   the greeting and the name match; the display font stays on the form's own heading. */
.done h1 {
    font-family: var(--body-font);
    font-weight: 200;
    font-size: 1.75rem;
    letter-spacing: 0;
}

.done-mark {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.done-mark svg {
    width: 34px;
    height: 34px;
}

.summary {
    width: 100%;
    background: rgba(255, 255, 255, .72);
    border-radius: 12px;
    padding: 6px 18px;
    text-align: left;
}

.summary > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}

.summary > div:last-child {
    border-bottom: 0;
}

/* The label never wraps; a long guest name wraps on the value side instead, where there is room. */
.summary dt {
    font-size: .88rem;
    color: var(--muted);
    white-space: nowrap;
}

.summary dd {
    font-size: .95rem;
    color: var(--ink);
    text-align: right;
}

.actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---------------------------------------------------------------- wider screens */

@media (min-width: 640px) {
    body {
        padding: 48px 20px;
    }

    .card {
        padding: 40px;
        gap: 24px;
    }

    .logo {
        height: 110px;
    }

    h1 {
        font-size: 3rem;
    }

    .lead {
        font-size: 1rem;
    }

    .dropzone {
        padding: 40px 24px;
    }

    .dropzone-icon {
        width: 44px;
        height: 44px;
    }

    .dropzone-title {
        font-size: 1.15rem;
    }

    .dropzone-hint {
        font-size: .85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
