/* Restaurant Reservation Public Styles */
.rr-reservation-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rr-reservation-header {
  text-align: center;
  margin-bottom: 30px;
}

.rr-reservation-header h2 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 600;
}

.rr-reservation-header p {
  color: #7f8c8d;
  font-size: 16px;
  margin: 0;
}

.rr-reservation-form {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.rr-form-row {
  margin-bottom: 20px;
}

.rr-form-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}

.rr-form-row .required {
  color: #e74c3c;
}

.rr-form-row input,
.rr-form-row select,
.rr-form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.rr-form-row input:focus,
.rr-form-row select:focus,
.rr-form-row textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Phone input styling */
.rr-phone-input-container {
  display: flex;
  align-items: center;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.rr-phone-input-container:focus-within {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.rr-phone-prefix {
  background: #f8f9fa;
  padding: 12px 16px;
  border-right: 1px solid #ecf0f1;
  font-weight: 600;
  color: #2c3e50;
  white-space: nowrap;
}

.rr-phone-input-container input {
  border: none;
  border-radius: 0;
  flex: 1;
  margin: 0;
}

.rr-phone-input-container input:focus {
  box-shadow: none;
}

.rr-phone-tooltip {
  display: flex;
  align-items: center;
  margin-top: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 13px;
  color: #6c757d;
}

.rr-tooltip-icon {
  margin-right: 8px;
  font-size: 16px;
}

/* Date and time row */
.rr-form-date-time {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .rr-form-date-time {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Submit button */
.rr-submit-button {
  width: 100%;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rr-submit-button:hover {
  background: linear-gradient(135deg, #2980b9, #1f5f8b);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.rr-submit-button:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Loading spinner */
.rr-loading {
  text-align: center;
  padding: 20px;
  color: #7f8c8d;
  font-style: italic;
}

/* Response messages */
.rr-response-message {
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
  font-weight: 500;
}

.rr-response-message.rr-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.rr-response-message.rr-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Thanks page styles */
.rr-thanks-content {
  text-align: center;
  padding: 40px 20px;
}

.rr-thanks-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.rr-thanks-title {
  color: #27ae60;
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 700;
}

.rr-thanks-message {
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 30px;
  line-height: 1.6;
}

.rr-reservation-details {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  margin: 30px 0;
  text-align: left;
}

.rr-reservation-details h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 20px;
  text-align: center;
}

.rr-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #ecf0f1;
}

.rr-detail-row:last-child {
  border-bottom: none;
}

.rr-detail-label {
  font-weight: 600;
  color: #7f8c8d;
}

.rr-detail-value {
  font-weight: 500;
  color: #2c3e50;
}

.rr-thanks-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.rr-calendar-button,
.rr-cancel-button {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.rr-calendar-button {
  background: #27ae60;
  color: white;
}

.rr-calendar-button:hover {
  background: #219a52;
  transform: translateY(-2px);
}

.rr-cancel-button {
  background: #e74c3c;
  color: white;
}

.rr-cancel-button:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
  .rr-reservation-container {
    padding: 15px;
  }

  .rr-reservation-form {
    padding: 20px;
  }

  .rr-thanks-actions {
    flex-direction: column;
    align-items: center;
  }

  .rr-calendar-button,
  .rr-cancel-button {
    width: 100%;
    justify-content: center;
  }
}
