@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

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

:root {
    --bg-top: #f7efe5;
    --bg-bottom: #dbeafe;
    --ink: #1f2937;
    --ink-light: #4b5563;
    --muted: #6b7280;
    --card: #ffffff;
    --accent: #0f766e;
    --accent-soft: rgba(15, 118, 110, 0.12);
    --line: rgba(31, 41, 55, 0.12);
    --shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

body {
    min-height: 100vh;
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top, var(--bg-top) 0%, #fdfbf7 35%, var(--bg-bottom) 100%);
    padding: 24px;
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 28px;
}

.hero {
    background: var(--card);
    border-radius: 28px;
    padding: 30px 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.18), transparent 70%);
    top: -120px;
    right: -80px;
}

.venue-link {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent);
    text-decoration: none;
    border: 1px solid rgba(15, 118, 110, 0.2);
    margin-bottom: 16px;
}

.venue-date {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.venue-place {
    font-size: 15px;
    color: var(--ink);
    font-weight: 600;
}

.venue-hint {
    font-size: 12px;
    color: var(--muted);
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    margin-bottom: 10px;
}

.hero-subtitle {
    color: var(--ink-light);
    line-height: 1.6;
    max-width: 520px;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.invite-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.35);
}

.save-status {
    font-size: 13px;
    color: var(--muted);
}

.attendee-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.attendee-section h2 {
    font-size: 20px;
}

.table-wrap {
    background: var(--card);
    border-radius: 20px;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    overflow-x: auto;
}

.attendee-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
    table-layout: fixed;
}

.attendee-table th,
.attendee-table td {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    text-align: left;
    font-size: 14px;
}

.attendee-table th:nth-child(1),
.attendee-table td:nth-child(1) {
    white-space: nowrap;
    padding-right: 10px;
}

.attendee-table th {
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--muted);
}

.attendee-name {
    font-weight: 600;
    font-size: 15px;
}

.field input,
.field select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--line);
    padding: 8px 10px;
    font-size: 13px;
    font-family: inherit;
    background: #ffffff;
    min-width: 0;
}

.field input:focus,
.field select:focus {
    outline: 2px solid rgba(15, 118, 110, 0.2);
    border-color: var(--accent);
}

@media (max-width: 640px) {
    body {
        padding: 16px;
    }

    .hero {
        padding: 24px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .table-wrap {
        padding: 10px;
    }

    .attendee-table {
        width: 100%;
        min-width: 620px;
    }

    .attendee-table th:nth-child(1),
    .attendee-table td:nth-child(1) {
        width: 4ch;
        padding-right: 2px;
    }

    .attendee-table th:nth-child(2),
    .attendee-table td:nth-child(2) {
        width: 4ch;
    }

    .attendee-table th:nth-child(3),
    .attendee-table td:nth-child(3),
    .attendee-table th:nth-child(4),
    .attendee-table td:nth-child(4),
    .attendee-table th:nth-child(5),
    .attendee-table td:nth-child(5) {
        width: 4ch;
    }

    .attendee-table th,
    .attendee-table td {
        padding: 6px 4px;
        font-size: 12px;
    }

    .field input,
    .field select {
        padding: 6px 8px;
        font-size: 12px;
    }

    .attendee-name {
        font-size: 14px;
    }
}

.after-plan {
    background: var(--card);
    border-radius: 22px;
    padding: 20px 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.after-plan h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.after-plan p {
    color: var(--ink-light);
    font-size: 13px;
    margin-bottom: 12px;
}

.after-plan textarea {
    width: 100%;
    min-height: 110px;
    border-radius: 14px;
    border: 1px solid var(--line);
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    background: #ffffff;
}

.after-plan textarea:focus {
    outline: 2px solid rgba(15, 118, 110, 0.2);
    border-color: var(--accent);
}

.after-plan-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.save-button {
    border: none;
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
}

.save-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}
