/* RSVP Form Basic Styling */
.wprsvp-wrap {
  margin: 0 auto;
  padding: 2rem 1rem;
}

.wprsvp-wrap label { 
  display: block; 
  margin-bottom: 0.75rem; 
  color: #ffffff;
  font-weight: 900;
  font-size: 18px;
}

.wprsvp-wrap h3 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
}

/* Override for welcome title specifically */
.wprsvp-welcome-title {
  color: #ffffff !important;
  font-size: 1.2em !important;
  margin: 0 0 0.5rem 0 !important;
}

.wprsvp-wrap p {
  color: #e8e8e8;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
}

.wprsvp-wrap small {
  color: #b8b8b8;
  font-size: 0.8rem;
  font-weight: 400;
  display: block;
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* Form inputs */
.wprsvp-wrap input[type="text"], 
.wprsvp-wrap input[type="email"], 
.wprsvp-wrap textarea, 
.wprsvp-wrap select {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
  background-color: #ffffff;
  color: #2d2d2d;
  font-weight: 400;
  margin-bottom: 1rem;
  font-family: inherit;
  line-height: 1.4;
  outline: none;
}

.wprsvp-wrap input[type="text"]:focus, 
.wprsvp-wrap input[type="email"]:focus, 
.wprsvp-wrap textarea:focus, 
.wprsvp-wrap select:focus {
  border-color: #6e8e6b;
  box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1);
  transform: translateY(-1px);
}

.wprsvp-wrap input[type="text"]:hover, 
.wprsvp-wrap input[type="email"]:hover, 
.wprsvp-wrap textarea:hover, 
.wprsvp-wrap select:hover {
  border-color: #c0c0c0;
}

.wprsvp-wrap textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

/* Placeholder text styling */
.wprsvp-wrap input::placeholder,
.wprsvp-wrap textarea::placeholder {
  font-weight: 400;
  font-size: 14px;
  color: #696969;
  opacity: 1;
}

/* Buttons */
.wprsvp-wrap button {
  background: #d5e8d4;
  color: #6e8e6b;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 100%;
  margin-top: 1rem;
  letter-spacing: 0.025em;
  text-transform: none;
  box-shadow: 0 2px 4px rgba(34, 139, 34, 0.2);
  font-family: inherit;
  line-height: 1.4;
  outline: none;
}

.wprsvp-wrap button:hover {
  background: #a2d7a4;
  color: #6e8e6b;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(34, 139, 34, 0.3);
}

.wprsvp-wrap button:active {
  background: linear-gradient(135deg, #1a6b1a 0%, #165a16 100%);
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(34, 139, 34, 0.2);
}

/* Form spacing */
.wprsvp-form {
  margin-top: 1.5rem;
}

.wprsvp-form label:not(:first-child) {
  margin-top: 1.25rem;
}

/* Welcome section */
.wprsvp-wrap > div:first-of-type {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Linked guest name styling */
.wprsvp-wrap h5 {
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: #ffffff;
  font-size: 1rem;
  text-transform: none;
}

/* Form visibility and layout */
.wprsvp-form-hidden {
  display: none;
}

.wprsvp-form-visible {
  display: block;
  margin-top: 1rem;
}

/* Welcome section styling */
.wprsvp-welcome-section {
  margin-bottom: 1.5rem;
}

.wprsvp-welcome-description {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

/* Email help text */
.wprsvp-email-help {
  color: #999;
  font-size: 0.8em;
}

/* Linked guests section */
.wprsvp-linked-guests-block {
  display: none;
  margin-top: 1rem;
}

.wprsvp-linked-guests-block.hidden {
  display: none;
}

/* Individual linked guest dropdown */
.wprsvp-linked-guest-item {
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.wprsvp-linked-guest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

.wprsvp-linked-guest-header:hover {
  background: rgba(255, 255, 255, 0.15);
}

.wprsvp-linked-guest-name {
  font-weight: 600;
  margin: 0 !important;
  color: #ffffff;
  font-size: 1rem;
  text-transform: none;
}

.wprsvp-chevron {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #ffffff;
  transition: transform 0.2s ease;
  margin-left: 0.5rem;
}

.wprsvp-chevron.open {
  transform: rotate(180deg);
}

.wprsvp-linked-guest-content {
  display: none;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wprsvp-linked-guest-content.open {
  display: block;
}

/* Notes textarea */
.wprsvp-notes-label {
  display: block;
  margin-top: 1rem;
}

.wprsvp-notes-textarea {
  width: 100%;
}

/* Message display */
.wprsvp-message {
  display: none;
  margin-top: 1rem;
}

/* Expandable form sections */
.wprsvp-expandable-section {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  opacity: 0;
}

.wprsvp-expandable-section.expanded {
  max-height: 1000px;
  opacity: 1;
  transition: max-height 0.3s ease-in, opacity 0.3s ease-in;
}

/* Box sizing for all elements */
.wprsvp-wrap * {
  box-sizing: border-box;
}

/* Admin page linked guests search styling */
.linked-guests-container {
  position: relative;
}

.linked-guests-search {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  background-color: #fff;
  color: #333;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.linked-guests-search:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 1px #0073aa;
  outline: none;
}

.linked-guests-search::placeholder {
  color: #999;
  font-style: italic;
}

/* Improve the select dropdown styling */
.linked-guests-container select[multiple] {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px;
  font-size: 14px;
  background-color: #fff;
  color: #333;
}

.linked-guests-container select[multiple]:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 1px #0073aa;
  outline: none;
}

/* Style for hidden options */
.linked-guests-container select[multiple] option[style*="display: none"] {
  display: none !important;
}