/* ─────────────────────────────────────────────────────────────────
   Base page — no invitation image (centered card)
───────────────────────────────────────────────────────────────── */
.guest-self-service {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ─────────────────────────────────────────────────────────────────
   Split layout — invitation image alongside form
───────────────────────────────────────────────────────────────── */
.guest-self-service.split-layout {
  background: #1a1a2e;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding: 0;
  min-height: 100vh;
}

/* Left panel: invitation image */
.invitation-image-panel {
  position: relative;
  overflow: hidden;
}

.invitation-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Right panel: form */
.split-layout .service-container {
  background: #fff;
  border-radius: 0;
  padding: 48px 40px;
  max-width: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: none;
  border-left: 1px solid #e8e8e8;
}

/* ─────────────────────────────────────────────────────────────────
   Default card (no image)
───────────────────────────────────────────────────────────────── */
.service-container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-container h1 {
  text-align: center;
  color: #667eea;
  margin-bottom: 10px;
  font-size: 2rem;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 16px;
  font-size: 1rem;
}

/* ─────────────────────────────────────────────────────────────────
   Forms
───────────────────────────────────────────────────────────────── */
.lookup-form,
.update-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  color: #555;
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  padding: 11px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: #fafafa;
  color: #222;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #667eea;
}

/* ─────────────────────────────────────────────────────────────────
   Buttons
───────────────────────────────────────────────────────────────── */
.btn {
  padding: 13px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 100%;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

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

.btn-link {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.875rem;
  padding: 0;
  margin-top: 4px;
}

.btn-link:hover {
  color: #764ba2;
}

/* ─────────────────────────────────────────────────────────────────
   Guest info box
───────────────────────────────────────────────────────────────── */
.guest-info {
  background: #f4f6ff;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 16px;
  text-align: center;
  border: 1px solid #e2e8ff;
}

.guest-info h2 {
  color: #667eea;
  margin-bottom: 6px;
  font-size: 1.3rem;
}

.guest-note {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* ─────────────────────────────────────────────────────────────────
   Feedback messages
───────────────────────────────────────────────────────────────── */
.error-message {
  background: #fff0f0;
  border: 1.5px solid #ffcccc;
  color: #c33;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
}

.success-message {
  background: #f0fff4;
  border: 1.5px solid #b2f5c8;
  color: #276749;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────────────
   Mobile
───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .guest-self-service.split-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 45vh auto;
  }

  .invitation-image-panel {
    max-height: 45vh;
  }

  .split-layout .service-container {
    border-left: none;
    border-top: 1px solid #e8e8e8;
    padding: 28px 20px;
    justify-content: flex-start;
  }

  .service-container {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .service-container h1 {
    font-size: 1.6rem;
  }
}

