:root {
    --background: #f4fbf6;
    --surface: #ffffff;
    --accent: #4f9a67;
    --accent-strong: #3f7d54;
    --text: #29382f;
    --muted: #54655b;
    --border: rgba(79, 154, 103, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", sans-serif;
    background: url("background.jpg") no-repeat fixed;
    background-size: cover;
    color: var(--text);
}

.page-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
    display: grid;
    grid-column: 1;
    grid-gap: 2rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(56, 91, 65, 0.09);
    padding: 2rem;
}

h1 {
    margin: 0 0 0.6rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.03em;
}

p.lead {
    margin: 0 0 1.8rem;
    line-height: 1.8;
    color: var(--muted);
    font-size: 1.05rem;
}

.event-group, .alert {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    border-radius: 22px;
    border: 1px solid rgba(79, 154, 103, 0.12);
    background: #f8faf7;
}

.alert {
    font-weight: bold;
}


.event-title {
    margin: 0 0 1rem;
    font-weight: 700;
    color: #31593e;
}

.option-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.9rem;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(79, 154, 103, 0.2);
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.option-label:hover {
    transform: translateY(-1px);
    border-color: rgba(79, 154, 103, 0.38);
    box-shadow: 0 10px 24px rgba(64, 99, 72, 0.08);
}

.option-label input {
    accent-color: var(--accent);
    width: 1rem;
    height: 1rem;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.8rem;
    border: none;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.submit-button:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

code {
    display: block;
    padding: 0.5rem 0.85rem;
    width: fit-content;
    font-size: 1.1rem;
    border-radius: 14px;
    background: #f1f7f0;
    flex-grow: 1;
}

.code-copy-wrapper {
    margin-top: 0.75rem;
    display: inline-flex;
    width: 100%;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.copy-button {
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.copy-button:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

.copy-button:focus-visible {
    outline: 2px solid rgba(79, 154, 103, 0.7);
    outline-offset: 2px;
}

.embed-map-responsive {
    position: relative;
    text-align: right;
    width: 100%;
    height: 0;
    padding-bottom: 66.66666666666666%;
    margin: 1rem auto 0;
}

.embed-map-container {
    overflow: hidden;
    background: none !important;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.embed-map-frame {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
}

.event-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(79, 154, 103, 0.12);
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin: 0.4rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(79, 154, 103, 0.2);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(79, 154, 103, 0.4);
    box-shadow: 0 0 0 3px rgba(79, 154, 103, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--muted);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}