.guest-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.guest-form-container {
  background: white;
  border-radius: 16px;
  padding: 0;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.guest-form {
  padding: 30px;
  position: relative;
}

.guest-form h2 {
  margin: 0 0 30px 0;
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
}

.table-info-display {
  background: #f0f8ff;
  border: 1px solid #4CAF50;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #2e7d32;
  text-align: center;
}

.field-note {
  font-size: 12px;
  color: #666;
  font-style: italic;
  margin-top: 4px;
  display: block;
}

input[readonly] {
  background-color: #f5f5f5;
  color: #666;
  cursor: not-allowed;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0px;
}

.form-group label {
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e1e1e1;
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

.notes-section label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

.notes-section textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  position: relative;
}

.close-btn {
  position: absolute;
  top: -320px;
  right: -10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #f5f5f5;
  color: #333;
}

.action-buttons {
  gap: 15px;
  justify-content: flex-end;
}

.reserve-btn,
.edit-btn,
.cancel-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.reserve-btn {
  background: #000;
  color: white;
}

.reserve-btn:hover:not(:disabled) {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.edit-btn {
  background: #2196F3;
  color: white;
}

.edit-btn:hover:not(:disabled) {
  background: #1976D2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.cancel-btn {
  background: #f44336;
  color: white;
}

.cancel-btn:hover:not(:disabled) {
  background: #d32f2f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.copy-payment-link-btn {
  background: #007bff;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.copy-payment-link-btn:hover:not(:disabled) {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.copy-payment-link-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.reserve-btn:disabled,
.edit-btn:disabled,
.cancel-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.error-message {
  background: #ffebee;
  color: #c62828;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  border-left: 4px solid #c62828;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .guest-form {
    padding: 20px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .close-btn {
    top: -260px;
  }
}

/* Inline form styles */
.guest-form-inline {
  font-family: 'Poppins', sans-serif;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.guest-info-section {
  display: flex;
  gap: 20px;
    align-items: stretch;
}

.guest-info-main.notes {
    max-width: 40%;
    align-items: end;
}

/* Guest info main section */
.guest-info-main {
  background: #eeeeee;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1;
}

.guest-info-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.guest-info-header h2 {
  margin: 0;
  color: #000;
  font-size: 40px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  line-height: 40px;
  white-space: nowrap;
}

.divider {
  width: 1px;
  height: 120px;
  background: #7A7A7A;
  flex-shrink: 0;
}

.guest-info-content {
  flex: 1;
  opacity: 0.6;
}

/* Notes and buttons container */
.notes-and-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}

.guest-form-inline .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.guest-form-inline .form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.guest-form-inline .form-group label {
    color: #7A7A7A;
    font-size: 14px;
    font-weight: 600;
    display: block;
    position: absolute;
    left: 16px;
    top: 8px;
    margin: 0;
    z-index: 9;
}

.guest-form-inline .form-group input {
  background: #ffffff;
  border: 1px solid #7A7A7A;
  border-radius: 12px;
  padding: 28px 16px 8px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  line-height: 24px;
  min-height: 60px;
}

.guest-form-inline .form-group input::placeholder {
  color: #B0B0B0;
  font-weight: 400;
  opacity: 0.8;
}

.guest-form-inline .form-group input:focus {
  outline: none;
  border-color: #7A7A7A;
  box-shadow: none;
}

/* Notes section - white background with gray border */
.guest-form-inline .notes-section {
  background: #ffffff;
  border: 1px solid #7a7a7a;
  border-radius: 20px;
  padding: 36px 24px 24px 24px;
  opacity: 0.6;
  box-sizing: border-box;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  flex:1;
}

.guest-form-inline .notes-section label {
  color: #7a7a7a;
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  display: block;
    position: absolute;
    left: 24px;
    top: 12px;
    line-height: 14px;
    text-align: left;
}

.guest-form-inline .notes-section textarea {
  background: transparent;
  border: none;
  border-radius: 0;
  flex: 1;
  resize: none;
  color: #000000;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  padding: 0;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  text-align: left;
}

.guest-form-inline .notes-section textarea::placeholder {
  color: #B0B0B0;
  font-weight: 300;
  opacity: 0.9;
}

.guest-form-inline .notes-section textarea:focus {
  border: none;
  outline: none;
  box-shadow: none;
}

/* Action buttons - positioned to the right of notes */
.guest-form-inline .action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 177px;
}

/* Buttons */
.guest-form-inline .reserve-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 12px 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
}

.guest-form-inline .reserve-btn:hover {
  background: #333;
}

.guest-form-inline .edit-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 12px 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
}

.guest-form-inline .edit-btn:hover {
  background: #333;
}

.guest-form-inline .swap-btn {
  background: #4CAF50;
  color: #fff;
  border: none;
  padding: 12px 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
}

.guest-form-inline .swap-btn:hover {
  background: #45a049;
}

.guest-form-inline .cancel-btn {
  background: #ff0000;
  color: #ffffff;
  border: none;
  padding: 12px 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
}

.guest-form-inline .cancel-btn:hover {
  background: #cc0000;
}

/* Hide modal close in inline mode */
.guest-form-inline .close-btn {
  display: none;
}

@media (max-width: 768px) {
  .guest-form-inline .form-row { grid-template-columns: 1fr; }
}

/* Deposit Section Styles */
.deposit-section {
  border-top: 1px solid #e0e0e0;
  padding-top: 15px;
  margin-top: 15px;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  cursor: pointer;
  font-weight: 500 !important;
  margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
  width: auto !important;
  height: auto !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

.checkmark {
  margin-left: 8px;
  font-size: 14px;
  color: #666;
}

.deposit-section input[name="deposit_amount"]:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.deposit-section .form-group:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Notes section styling */
.notes-full-width {
  grid-column: 1 / -1;
  width: 100%;
}

.notes-section {
  width: 100%;
}

.notes-section .form-group {
  width: 100%;
}

.notes-section textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
}
