:root {
    --bg-gradient-start: #ffd6e8;
    --bg-gradient-end: #c3d4ff;
    --card-bg: rgba(255, 255, 255, 0.65);
    --card-border: rgba(255, 255, 255, 0.8);
    --text-main: #3a2e4d;
    --text-muted: #6b5c80;
    --green: rgba(46, 196, 121, 0.85);
    --green-hover: rgba(46, 196, 121, 1);
    --red: rgba(230, 73, 90, 0.85);
    --red-hover: rgba(230, 73, 90, 1);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-pill: 999px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-main);
    padding: 24px;
    overflow-x: hidden;
}

.card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(60, 30, 90, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.card h1 {
    font-size: 1.6rem;
    line-height: 1.4;
    margin: 0 0 28px;
    font-weight: 600;
}

.card p.subtitle {
    color: var(--text-muted);
    margin-top: -16px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.button-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    min-height: 64px;
}

button, .btn {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-pill);
    padding: 14px 30px;
    cursor: pointer;
    color: #fff;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn-yes {
    background: var(--green);
}

.btn-yes:hover {
    background: var(--green-hover);
    transform: translateY(-2px) scale(1.03);
}

.btn-no {
    background: var(--red);
    position: relative;
}

.btn-no.dodging {
    position: absolute;
    z-index: 5;
}

.btn-no.vanished {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.btn-secondary {
    background: rgba(120, 110, 140, 0.75);
}

.btn-secondary:hover {
    background: rgba(120, 110, 140, 0.95);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

form {
    text-align: left;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.option:hover {
    background: rgba(255, 255, 255, 0.75);
}

.option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--green-hover);
}

.option.selected {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 14px rgba(60, 30, 90, 0.12);
}

textarea, input[type="text"], select {
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(120, 110, 140, 0.3);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-main);
    resize: vertical;
}

textarea:focus, input:focus, select:focus {
    outline: 2px solid var(--green);
}

label.field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

.message-banner {
    background: rgba(255, 255, 255, 0.85);
    border-left: 4px solid var(--green-hover);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.day-time-picker {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 8px;
}

.slot-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slot-group .slot-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.error-text {
    color: var(--red-hover);
    font-size: 0.9rem;
    margin-top: -8px;
    margin-bottom: 16px;
}

.gate-form {
    text-align: center;
}

.gate-form input[type="password"] {
    text-align: center;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .card {
        padding: 32px 22px;
    }

    button, .btn {
        padding: 13px 24px;
    }
}
