/* Wedding Floorplan - Public/Guest View */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Inter:wght@300;400;500&display=swap');

.wfp-public {
    --wfp-ivory: #faf7f2;
    --wfp-cream: #f4ede2;
    --wfp-sand: #e8dfd0;
    --wfp-warm-taupe: #d4a574;
    --wfp-charcoal: #2a2722;
    --wfp-ink: #1a1814;
    --wfp-text: #4a443d;
    --wfp-text-muted: #8a8275;
    --wfp-border: #e8e3dc;

    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--wfp-text);
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background: var(--wfp-ivory);
    border-radius: 4px;
}

.wfp-public * {
    box-sizing: border-box;
}

.wfp-public-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--wfp-border);
}

.wfp-public-eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--wfp-warm-taupe);
    margin: 0 0 12px;
}

.wfp-public-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 400;
    color: var(--wfp-ink);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.wfp-public-date {
    color: var(--wfp-text-muted);
    font-size: 15px;
    margin: 0;
    letter-spacing: 0.02em;
}

.wfp-public-search-wrap {
    max-width: 500px;
    margin: 0 auto 40px;
    position: relative;
}

.wfp-public-search {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--wfp-border);
    border-radius: 3px;
    font-size: 15px;
    font-family: inherit;
    background: white;
    color: var(--wfp-ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wfp-public-search:focus {
    outline: none;
    border-color: var(--wfp-warm-taupe);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}

.wfp-public-search-results {
    margin-top: 8px;
}

.wfp-public-result {
    padding: 14px 18px;
    background: white;
    border: 1px solid var(--wfp-border);
    border-radius: 3px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: wfp-fade-in 0.2s ease;
}

.wfp-public-result-name {
    font-weight: 500;
    color: var(--wfp-ink);
    font-size: 15px;
}

.wfp-public-result-table {
    color: var(--wfp-text-muted);
    font-size: 14px;
}

.wfp-public-result-table strong {
    color: var(--wfp-warm-taupe);
    font-weight: 500;
}

.wfp-public-no-result {
    padding: 14px 18px;
    color: var(--wfp-text-muted);
    text-align: center;
    font-style: italic;
}

@keyframes wfp-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.wfp-public-canvas-wrap {
    background: white;
    border: 1px solid var(--wfp-border);
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 40px;
    overflow: auto;
}

.wfp-public-canvas {
    width: 100%;
    height: auto;
    display: block;
}

.wfp-public-table-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    fill: var(--wfp-ink);
}

.wfp-public-table-sub {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    fill: var(--wfp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.wfp-public-tables-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.wfp-public-table-card {
    background: white;
    border: 1px solid var(--wfp-border);
    border-radius: 3px;
    padding: 20px 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wfp-public-table-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 39, 34, 0.06);
}

.wfp-public-table-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--wfp-ink);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--wfp-border);
}

.wfp-public-table-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wfp-public-table-card li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--wfp-text);
    border-bottom: 1px dashed var(--wfp-border);
}

.wfp-public-table-card li:last-child {
    border-bottom: none;
}

@media (max-width: 600px) {
    .wfp-public {
        padding: 24px 16px;
        margin: 20px auto;
    }
    .wfp-public-title {
        font-size: 32px;
    }
    .wfp-public-canvas-wrap {
        padding: 16px;
    }
}

/* ========================
   RSVP FORM
   ======================== */
.wfp-rsvp-wrap {
    --wfp-ivory: #faf7f2;
    --wfp-cream: #f4ede2;
    --wfp-sand: #e8dfd0;
    --wfp-warm-taupe: #d4a574;
    --wfp-charcoal: #2a2722;
    --wfp-ink: #1a1814;
    --wfp-text: #4a443d;
    --wfp-text-muted: #8a8275;
    --wfp-border: #e8e3dc;
    --wfp-sage: #a8b5a0;
    --wfp-blush: #d8a5a0;

    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--wfp-text);
    max-width: 560px;
    margin: 40px auto;
    padding: 20px;
}

.wfp-rsvp-wrap * { box-sizing: border-box; }

.wfp-rsvp-card {
    background: var(--wfp-ivory);
    border: 1px solid var(--wfp-border);
    border-radius: 4px;
    padding: 48px 40px;
    text-align: center;
    position: relative;
}

.wfp-rsvp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--wfp-warm-taupe), var(--wfp-blush), var(--wfp-sage));
    border-radius: 4px 4px 0 0;
}

.wfp-rsvp-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--wfp-warm-taupe);
    margin: 0 0 12px;
}

.wfp-rsvp-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 400;
    color: var(--wfp-ink);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.wfp-rsvp-date {
    color: var(--wfp-text-muted);
    font-size: 15px;
    margin: 0 0 24px;
}

.wfp-rsvp-divider {
    color: var(--wfp-warm-taupe);
    font-size: 24px;
    margin: 24px 0;
    font-family: 'Cormorant Garamond', serif;
}

.wfp-rsvp-greeting {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-style: italic;
    color: var(--wfp-ink);
    text-align: center;
    margin-bottom: 24px;
}

.wfp-rsvp-form {
    text-align: left;
    max-width: 440px;
    margin: 0 auto;
}

.wfp-rsvp-form label {
    display: block;
    margin-bottom: 16px;
}

.wfp-rsvp-form label > span {
    display: block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wfp-text-muted);
    margin-bottom: 6px;
}

.wfp-rsvp-form input[type="text"],
.wfp-rsvp-form select,
.wfp-rsvp-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--wfp-border);
    border-radius: 2px;
    font-family: inherit;
    font-size: 14px;
    color: var(--wfp-ink);
    background: white;
    transition: border-color 0.2s;
}

.wfp-rsvp-form input:focus,
.wfp-rsvp-form select:focus,
.wfp-rsvp-form textarea:focus {
    outline: none;
    border-color: var(--wfp-warm-taupe);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}

.wfp-rsvp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.wfp-rsvp-question {
    margin: 28px 0 24px;
    text-align: center;
}

.wfp-rsvp-question > p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: var(--wfp-ink);
    margin: 0 0 16px;
}

.wfp-rsvp-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wfp-rsvp-option {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: white;
    border: 1px solid var(--wfp-border);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 !important;
}

.wfp-rsvp-option:hover {
    border-color: var(--wfp-warm-taupe);
    background: var(--wfp-cream);
}

.wfp-rsvp-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
    accent-color: var(--wfp-warm-taupe);
}

.wfp-rsvp-option:has(input:checked) {
    border-color: var(--wfp-warm-taupe);
    background: var(--wfp-cream);
}

.wfp-rsvp-option > span {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 14px !important;
    color: var(--wfp-ink) !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

.wfp-rsvp-conditional {
    display: none;
}

.wfp-rsvp-checkbox {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: white;
    border: 1px solid var(--wfp-border);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 16px !important;
}

.wfp-rsvp-checkbox input {
    margin: 0;
    accent-color: var(--wfp-warm-taupe);
}

.wfp-rsvp-checkbox > span {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 14px !important;
    color: var(--wfp-ink) !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

.wfp-rsvp-partner {
    padding: 20px;
    background: white;
    border: 1px dashed var(--wfp-border);
    border-radius: 3px;
    margin-bottom: 16px;
}

.wfp-rsvp-submit {
    width: 100%;
    padding: 14px 24px;
    margin-top: 16px;
    background: var(--wfp-charcoal);
    color: var(--wfp-ivory);
    border: none;
    border-radius: 2px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.wfp-rsvp-submit:hover:not(:disabled) {
    background: var(--wfp-ink);
    transform: translateY(-1px);
}

.wfp-rsvp-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wfp-rsvp-message {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 3px;
    font-size: 14px;
    text-align: center;
}

.wfp-rsvp-message.success {
    background: #f0f5ec;
    color: #4a6e3a;
    border: 1px solid var(--wfp-sage);
}

.wfp-rsvp-message.error {
    background: #fef2f2;
    color: #c44545;
    border: 1px solid #f3d4d4;
}

.wfp-rsvp-thanks {
    padding: 32px 0;
}

.wfp-rsvp-thanks h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 500;
    color: var(--wfp-ink);
    margin: 0 0 12px;
}

.wfp-rsvp-thanks p {
    color: var(--wfp-text);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .wfp-rsvp-card {
        padding: 32px 24px;
    }
    .wfp-rsvp-title {
        font-size: 32px;
    }
    .wfp-rsvp-row {
        grid-template-columns: 1fr;
    }
}
