:root {
  --bg-cream: #FDF6E3;
  --primary-teal: #2DD4BF;
  --primary-teal-dark: #14B8A6;
  --secondary-magenta: #D946EF;
  --secondary-magenta-dark: #C026D3;
  --accent-purple: #7C3AED;
  --accent-yellow: #FBBF24;
  --accent-green: #22C55E;
  --text-dark: #1F2937;
  --text-muted: #6B7280;
  --error-red: #EF4444;
  --white: #FFFFFF;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section {
  animation: fadeIn 0.4s ease-out;
}

.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography */
.script-title {
  font-family: 'Pacifico', cursive;
  font-size: 2.5rem;
  color: var(--secondary-magenta);
  text-align: center;
  margin-bottom: 0.5rem;
}

.subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.5rem;
  color: var(--primary-teal-dark);
  margin-bottom: 1rem;
  text-align: center;
}

h3 {
  font-size: 1.1rem;
  color: var(--accent-purple);
  margin-bottom: 0.5rem;
}

/* Form elements */
.input-group {
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 2px solid #E5E7EB;
  border-radius: 6px;
  background-color: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group textarea {
  rows: 2;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.input-group .hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.input-group .hint.warning-hint {
  color: var(--accent-purple);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Buttons */
.btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(45, 212, 191, 0.4);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 212, 191, 0.5);
}

.btn.primary:active {
  transform: translateY(0);
}

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

/* Error message */
.error-message {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  text-align: center;
}

.error-message p {
  margin-bottom: 0.5rem;
}

.error-message p:last-child {
  margin-bottom: 0;
}

/* Side-by-side layout for desktop */
.rsvp-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .rsvp-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .rsvp-layout .invite-image-container {
    flex: 1 1 auto;
    max-width: none;
    margin-bottom: 0;
    position: sticky;
    top: 1rem;
  }

  .rsvp-layout .rsvp-form {
    flex: 0 0 320px;
    min-width: 280px;
  }
}

/* Invitation image */
.invite-image-container {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.invite-image {
  width: 100%;
  height: auto;
  display: block;
}

/* RSVP form */
.rsvp-form {
  background-color: var(--white);
  padding: 1.25rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  font-weight: 300;
  color: var(--secondary-magenta);
}

.rsvp-form h2 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--secondary-magenta);
}

.rsvp-form label {
  font-weight: 300;
  color: var(--secondary-magenta);
}

.welcome-name {
  text-align: center;
  font-size: 0.95rem;
  color: var(--secondary-magenta);
  font-weight: 300;
  margin-bottom: 1rem;
}

.welcome-name span {
  color: var(--primary-teal-dark);
  font-weight: 400;
}

/* Radio buttons */
.radio-group {
  display: flex;
  gap: 0.75rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-weight: 300;
  color: var(--secondary-magenta);
}

.radio-option input[type="radio"] {
  width: auto;
  margin: 0;
  accent-color: var(--secondary-magenta);
}

.radio-option span {
  font-size: 0.9rem;
}

/* Input row for side-by-side fields */
.input-row {
  display: flex;
  gap: 0.75rem;
}

.input-row .input-group {
  flex: 1;
}

.input-row .input-small {
  flex: 0 0 70px;
}

/* Pot-luck section */
.potluck-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #E5E7EB;
}

.potluck-header h3 {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--secondary-magenta);
  margin-bottom: 0.25rem;
}

.potluck-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 300;
}

/* Pot-luck stats - clean table */
.potluck-stats {
  background-color: #F8FAFC;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.stats-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.stats-table {
  width: 100%;
  font-size: 0.8rem;
}

.stats-table tr {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0;
}

.stats-table tr.stats-total-row {
  font-weight: 400;
  color: var(--primary-teal-dark);
  padding-bottom: 0.35rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid #E5E7EB;
}

.stats-table .stat-cat {
  color: var(--text-muted);
  font-weight: 300;
}

.stats-table .stat-num {
  color: var(--primary-teal-dark);
  font-weight: 400;
  text-align: right;
}

.stats-table .stat-num.low {
  color: var(--error-red);
}

/* Confirmation section */
#confirmation-section {
  text-align: center;
}

.confirmation-message {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 1rem 0 2rem;
}

.confirmation-details {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.confirmation-details p {
  margin-bottom: 0.25rem;
}

.reminder {
  font-size: 0.95rem;
  color: var(--secondary-magenta);
  font-weight: 500;
}

/* Gift/donation note */
.gift-note {
  margin-top: 2rem;
  padding: 1.25rem;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.gift-header {
  font-size: 1rem;
  font-weight: 500;
  color: var(--secondary-magenta);
  margin-bottom: 0.5rem;
  text-align: center;
}

.gift-message {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.gift-message a {
  color: var(--primary-teal-dark);
  font-weight: 400;
  text-decoration: none;
}

.gift-message a:hover {
  text-decoration: underline;
}

.gift-why {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  margin-top: 1rem;
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(253, 246, 227, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #E5E7EB;
  border-top-color: var(--primary-teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 767px) {
  .container {
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  .script-title {
    font-size: 2rem;
  }

  .rsvp-form {
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item:first-child {
    grid-column: span 1;
  }
}

/* Secondary button */
.btn.secondary {
  background: var(--white);
  color: var(--primary-teal-dark);
  border: 2px solid var(--primary-teal);
  box-shadow: none;
}

.btn.secondary:hover {
  background: var(--primary-teal);
  color: var(--white);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 1rem;
}

.modal-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
  font-size: 1.25rem;
  color: var(--secondary-magenta);
  margin-bottom: 0.75rem;
}

.modal-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-buttons .btn {
  width: 100%;
}

/* Gallery Section */
#gallery-section {
  margin-top: 2rem;
}

.gallery-title {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  color: var(--secondary-magenta);
  text-align: center;
  margin-bottom: 0.5rem;
}

.gallery-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.gallery-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.gallery-actions .btn {
  flex: 1;
  min-width: 140px;
}

.upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}

.upload-icon {
  font-size: 1.25rem;
  font-weight: bold;
}

/* Upload warning/preview */
.upload-warning {
  background-color: var(--white);
  padding: 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.upload-warning p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.upload-warning strong {
  color: var(--primary-teal-dark);
}

.upload-preview {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  max-height: 150px;
  overflow-y: auto;
}

.upload-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #E5E7EB;
}

.upload-buttons {
  display: flex;
  gap: 0.75rem;
}

.upload-buttons .btn {
  flex: 1;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem;
  background-color: var(--white);
  border-radius: 10px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .photo-attribution {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
  font-size: 0.75rem;
  padding: 1.5rem 0.5rem 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.gallery-loading .spinner {
  margin: 0 auto 1rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  padding: 0.5rem;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--primary-teal);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
  padding: 1rem;
  z-index: 10;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 0;
  border-radius: 0 8px 8px 0;
}

.lightbox-next {
  right: 0;
  border-radius: 8px 0 0 8px;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightbox-image {
  max-width: 100%;
  max-height: calc(90vh - 60px);
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-caption {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--white);
}

#lightbox-attribution {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.lightbox-download-btn {
  color: var(--primary-teal);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary-teal);
  border-radius: 6px;
  transition: background 0.2s;
}

.lightbox-download-btn:hover {
  background: var(--primary-teal);
  color: var(--white);
}

/* View Photos button in confirmation */
#view-photos-btn {
  margin-top: 1.5rem;
  width: auto;
  display: inline-block;
}

/* Dashboard */
#dashboard-section .script-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

#dashboard-section .script-title span {
  color: var(--primary-teal-dark);
}

.dashboard-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dashboard-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .dashboard-layout {
    flex-direction: row;
  }

  .dashboard-left {
    flex: 1;
  }

  .dashboard-right {
    flex: 1;
  }

  .dashboard-right .dashboard-card {
    height: 100%;
  }
}

.dashboard-card {
  background-color: var(--white);
  padding: 1.25rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dashboard-card h3 {
  font-size: 1rem;
  color: var(--secondary-magenta);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.dashboard-card p {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
  font-weight: 300;
}

.dashboard-card strong {
  font-weight: 500;
  color: var(--text-muted);
}

.dashboard-card a {
  color: var(--primary-teal-dark);
  text-decoration: none;
}

.dashboard-card a:hover {
  text-decoration: underline;
}

.dashboard-note {
  font-style: italic;
  color: var(--text-muted) !important;
  margin-top: 0.5rem !important;
}

.dashboard-card .btn {
  margin-top: 1rem;
  width: 100%;
}

.dashboard-card .stats-table {
  margin-top: 0.5rem;
}

.menu-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.menu-section h4 {
  font-size: 0.95rem;
  color: var(--secondary-magenta);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.menu-list li {
  background: linear-gradient(135deg, var(--primary-teal), var(--accent-purple));
  color: var(--white);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 400;
}

.dashboard-actions-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-actions-card .btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-actions {
    flex-direction: column;
  }

  .lightbox-nav {
    font-size: 2rem;
    padding: 0.5rem;
  }
}

/* ============================================
   VERIFICATION STYLES
   ============================================ */

#phone-verify-section,
#discord-verify-section {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.verify-step {
  margin: 2rem 0;
}

.verify-phone-display,
.verify-discord-display {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.verify-phone-display strong,
.verify-discord-display strong {
  color: var(--primary-teal-dark);
}

#verify-code-input {
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 0.5rem;
  font-weight: 600;
}

#recaptcha-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.btn.text-btn {
  background: transparent;
  color: var(--text-muted);
  box-shadow: none;
  font-weight: 400;
  margin-top: 1rem;
}

.btn.text-btn:hover {
  color: var(--text-dark);
  transform: none;
}

/* Dashboard header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dashboard-header .script-title {
  margin-bottom: 0;
}

.dashboard-header .btn.text-btn {
  width: auto;
  margin-top: 0;
  white-space: nowrap;
}

/* Gallery header */
.gallery-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gallery-header .btn.text-btn {
  width: auto;
  margin-top: 0;
  padding: 0.5rem;
}

.gallery-header-text {
  flex: 1;
}

.gallery-header-text .gallery-title {
  margin-bottom: 0.25rem;
}

.gallery-header-text .gallery-subtitle {
  margin-bottom: 0;
}

/* Button spinner */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 0.25rem;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Discord Button */
.btn.discord-btn {
  background-color: #5865F2;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
}

.btn.discord-btn:hover {
  background-color: #4752C4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

.discord-icon {
  flex-shrink: 0;
}

#resend-code-btn {
  margin-top: 0.75rem;
  background: transparent;
  color: var(--text-muted);
  box-shadow: none;
}

#resend-code-btn:hover {
  color: var(--primary-teal-dark);
}

/* Guestbook */
.guestbook-form-card,
.guestbook-list-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

.guestbook-form-card h3,
.guestbook-list-card h3 {
  font-size: 1.1rem;
  color: var(--secondary-magenta);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.socials-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-input-row label {
  flex: 0 0 120px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.social-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.social-input-row input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.social-input-row input:focus {
  outline: none;
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

.socials-form .btn {
  margin-top: 0.75rem;
  align-self: flex-start;
}

.guestbook-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.guestbook-input-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
}

.guestbook-input-group input,
.guestbook-input-group textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.guestbook-input-group input:focus,
.guestbook-input-group textarea:focus {
  outline: none;
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

.guestbook-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .guestbook-row-2col {
    grid-template-columns: 1fr;
  }
}

.form-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 0.5rem 0;
}

.guestbook-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.guestbook-form-header h3 {
  margin-bottom: 0;
  white-space: nowrap;
}

.guestbook-form-header .btn.text-btn {
  margin-top: 0;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: var(--primary-teal-dark);
}

/* Collapsed socials view */
.socials-collapsed {
  padding: 0.5rem 0;
}

.collapsed-message {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.collapsed-relations {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.collapsed-icons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.collapsed-icon {
  width: 24px;
  height: 24px;
  color: #D1D5DB;
  cursor: default;
  position: relative;
  transition: color 0.2s;
}

.collapsed-icon.filled {
  color: var(--text-dark);
  cursor: pointer;
}

.collapsed-icon svg {
  width: 100%;
  height: 100%;
}

.collapsed-icon.filled:hover {
  color: var(--primary-teal-dark);
}

/* Tooltip for filled icons */
.collapsed-icon.filled::after {
  content: attr(data-value);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-dark);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  margin-bottom: 4px;
}

.collapsed-icon.filled:hover::after {
  opacity: 1;
}

.provided-blurb {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.potluck-subhead {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.heels-warning {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent-yellow);
  font-size: 0.9rem;
  margin-top: 0.75rem !important;
}

/* Guestbook list */
.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guestbook-empty {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

.guest-card {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.05), rgba(124, 58, 237, 0.05));
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary-teal);
}

.guest-card-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.guest-card-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.guest-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 15px;
  font-size: 0.8rem;
  color: var(--text-dark);
  text-decoration: none;
  border: 1px solid #E5E7EB;
  transition: border-color 0.2s, background 0.2s;
}

.guest-social-link:hover {
  border-color: var(--primary-teal);
  background: rgba(45, 212, 191, 0.1);
}

.social-icon-sm {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.guest-card-content {
  flex: 1;
}

.guest-card-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.guest-card {
  display: flex;
  align-items: flex-start;
}

.guest-card-relation {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.guest-card-message {
  font-size: 0.85rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.confirmation-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .social-input-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-input-row label {
    flex: none;
  }

  .social-input-row input {
    width: 100%;
  }
}
