/**
 * Wedding Category — Specific Styles
 * Depends on: form-style.css (common)
 * Mobile-first. Other categories will have their own css/{category}/ file.
 */

/* =========================================================================
   SIDE TOGGLE — Who is sending the invitation?
   ========================================================================= */

.mivb-side-toggle-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.mivb-side-toggle-sub {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 14px;
    line-height: 1.5;
}

.mivb-side-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.mivb-side-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 10px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.22s ease;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    min-height: 90px;
}

.mivb-side-btn:hover {
    border-color: #ff7396;
    box-shadow: 0 2px 10px rgba(255, 115, 150, 0.12);
}

.mivb-side-btn.active {
    background: #ff7396;
    border-color: #ff7396;
    box-shadow: 0 4px 14px rgba(255, 115, 150, 0.35);
    transform: translateY(-1px);
}

.mivb-side-btn .toggle-icon {
    font-size: 26px;
    line-height: 1;
    display: block;
}

.mivb-side-btn .toggle-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    display: block;
    line-height: 1.3;
}

.mivb-side-btn.active .toggle-title {
    color: #fff;
}

.mivb-side-btn .toggle-sub {
    font-size: 11px;
    color: #888;
    display: block;
    line-height: 1.3;
}

.mivb-side-btn.active .toggle-sub {
    color: rgba(255, 255, 255, 0.85);
}

/* Checkmark badge on active button */
.mivb-side-btn .toggle-check {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 14px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mivb-side-btn.active .toggle-check {
    opacity: 1;
}

/* =========================================================================
   PARTNER SECTIONS — Groom & Bride grouped fields
   ========================================================================= */

.mivb-partners-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mivb-partner-section {
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Primary section (the side sending the invitation) gets pink highlight */
.mivb-partners-wrapper.side-groom .mivb-groom-section,
.mivb-partners-wrapper.side-bride .mivb-bride-section {
    /* border-color: rgba(255, 115, 150, 0.4); */
    box-shadow: 0 3px 12px rgba(255, 115, 150, 0.1);
}

/* Section ordering — selected side appears first */
.mivb-partners-wrapper.side-groom .mivb-groom-section { order: 1; }
.mivb-partners-wrapper.side-groom .mivb-bride-section  { order: 2; }
.mivb-partners-wrapper.side-bride .mivb-bride-section  { order: 1; }
.mivb-partners-wrapper.side-bride .mivb-groom-section  { order: 2; }

/* Section Header */
.mivb-partner-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #f0f0f0;
}

/* Pink header bar for the primary/sending side */
.mivb-partners-wrapper.side-groom .mivb-groom-section .mivb-partner-section-header,
.mivb-partners-wrapper.side-bride .mivb-bride-section .mivb-partner-section-header {
    background: #fff5f8;
    border-bottom-color: rgba(255, 115, 150, 0.2);
}

.mivb-partner-section-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
}

.mivb-partner-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    flex: 1;
}

/* "Appears first in video" badge */
.mivb-partner-section-badge {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #ff7396;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.mivb-partners-wrapper.side-groom .mivb-groom-section .mivb-partner-section-badge,
.mivb-partners-wrapper.side-bride .mivb-bride-section .mivb-partner-section-badge {
    display: inline-flex;
}

/* Section fields padding */
.mivb-partner-section-fields {
    padding: 16px 16px 4px;
}

/* Remove bottom margin from the last field-wrapper inside a section */
.mivb-partner-section-fields .field-wrapper:last-child {
    margin-bottom: 16px;
}

/* =========================================================================
   QUESTION CARD ICON COLOR VARIANTS
   ========================================================================= */

.mivb-icon-pink {
    background: #fff0f3;
    color: #ff4d79;
}

.mivb-icon-purple {
    background: #f3f0ff;
    color: #7c3aed;
}

.mivb-icon-green {
    background: #f0fff8;
    color: #059669;
}

/* =========================================================================
   EVENTS STEP — Step 3 (wedding-specific theming on top of form-style.css base)
   ========================================================================= */

/* Step header */
.mivb-events-step-header {
    margin-bottom: 20px;
}

.mivb-events-step-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px;
}

.mivb-events-step-sub {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

/* Wedding: pink-tinted card border + header */
.event-block {
    border-color: #ffe0ea;
}

.event-block .event-header {
    background: #fff5f8;
    border-bottom-color: #ffe0ea;
}

/* Wedding: summary header same pink tint */
.event-block .event-summary-header {
    background: #fff5f8;
    border-bottom-color: #ffe0ea;
}

.event-block .event-summary-title {
    color: #ff7396;
}

/* Wedding: empty state */
.mivb-events-empty {
    border-color: #ffd6e3;
    background: #fff9fb;
}

.mivb-events-empty-icon {
    color: #ffb3c8;
}

/* Add Another Event — outlined pill */
.mivb-add-event-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 8px 0 20px;
}

.addFullEventBlock {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    background: #fff;
    color: #ff7396;
    border: 2px solid #ff7396;
    box-shadow: none;
}

.addFullEventBlock:hover:not(:disabled) {
    background: #fff5f8;
    transform: none;
    box-shadow: none;
}

.addFullEventBlock:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mivb-max-events-notice {
    font-size: 12px;
    color: #888;
    text-align: center;
}

/* =========================================================================
   RSVP / MESSAGE STEP — Step 4
   ========================================================================= */

.mivb-rsvp-header {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 0;
}

.mivb-rsvp-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.mivb-rsvp-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.mivb-rsvp-subtitle {
    font-size: 13px;
    color: #888;
    display: block;
    line-height: 1.5;
}

/* Tip box above the textarea */
.mivb-rsvp-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f0faf4;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #2d6a4f;
    line-height: 1.5;
}

.mivb-rsvp-tip-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}


/* See Preview button inherits base .nxtBtn gradient style */

/* =========================================================================
   RESPONSIVE — Tablet & Desktop tweaks
   ========================================================================= */

@media (min-width: 481px) {
    .mivb-side-btn {
        min-height: 100px;
        padding: 20px 14px;
    }

    .mivb-side-btn .toggle-icon {
        font-size: 30px;
    }

    .mivb-side-btn .toggle-title {
        font-size: 15px;
    }

    .mivb-side-btn .toggle-sub {
        font-size: 12px;
    }

    .mivb-partner-section-badge {
        font-size: 11px;
        padding: 4px 12px;
    }
}

@media (min-width: 769px) {
    .mivb-side-toggle {
        gap: 16px;
    }

    .mivb-partner-section-header {
        padding: 14px 20px;
    }

    .mivb-partner-section-fields {
        padding: 20px 20px 4px;
    }
}
