/**
 * CSS for the public-facing functionality of the AMTI Events plugin
 */

/* Event List */
.amti-event-list {
  margin-bottom: 2em;
}

.amti-event {
  margin-bottom: 2em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #eee;
}

.amti-event:last-child {
  border-bottom: none;
}

.amti-event-title {
  margin-top: 0;
  margin-bottom: 0.5em;
}

.amti-event-meta {
  margin-bottom: 1em;
  font-size: 0.9em;
}

.amti-event-meta p {
  margin: 0.3em 0;
}

.amti-event-actions {
  margin-top: 1em;
}

.amti-event-details-link,
.amti-event-register-link {
  display: inline-block;
  margin-right: 1em;
  padding: 0.5em 1em;
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 3px;
}

.amti-event-register-link {
  background-color: #0073aa;
  color: #fff;
}

.amti-event-register-link:hover {
  background-color: #005d8c;
  color: #fff;
}

.amti-status-open {
  color: #4CAF50;
  font-weight: bold;
}

.amti-status-closed {
  color: #F44336;
  font-weight: bold;
}

/* Payment Confirmation Styles */
.amti-payment-confirmation {
	max-width: 800px;
	margin: 30px auto;
	padding: 25px;
	background-color: #f9f9f9;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.amti-payment-confirmation h2 {
	margin-top: 0;
	margin-bottom: 20px;
	color: #333;
	font-size: 24px;
}

.amti-payment-success {
	border-left: 5px solid #5cb85c;
	padding-left: 15px;
}

.amti-payment-success h2 {
	color: #5cb85c;
}

.amti-payment-cancelled {
	border-left: 5px solid #f0ad4e;
	padding-left: 15px;
}

.amti-payment-cancelled h2 {
	color: #f0ad4e;
}

.amti-payment-error {
	border-left: 5px solid #d9534f;
	padding-left: 15px;
}

.amti-payment-error h2 {
	color: #d9534f;
}

.amti-event-details {
	margin-top: 20px;
	padding: 15px;
	background-color: #ffffff;
	border: 1px solid #eee;
	border-radius: 4px;
}

.amti-event-details h3 {
	margin-top: 0;
	font-size: 18px;
	color: #333;
}

.amti-payment-confirmation .button {
	display: inline-block;
	background-color: #5cb85c;
	color: white;
	padding: 10px 20px;
	margin-top: 15px;
	border-radius: 4px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	font-size: 16px;
}

.amti-payment-confirmation .button:hover {
	background-color: #4cae4c;
	color: white;
	text-decoration: none;
}

.amti-admin-debug {
	margin-top: 30px;
	padding: 15px;
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.amti-admin-debug h4 {
	margin-top: 0;
	margin-bottom: 10px;
	color: #666;
}

.amti-admin-debug ul {
	margin-left: 20px;
	list-style-type: disc;
}

.amti-admin-debug pre {
	background: #fff;
	padding: 10px;
	border: 1px solid #ddd;
	overflow: auto;
	max-height: 200px;
}

/* Registration Form */
.amti-event-registration {
  margin-bottom: 2em;
}

.amti-event-details {
  margin-bottom: 2em;
  padding-bottom: 1em;
  border-bottom: 1px solid #eee;
}

.amti-registration-form-container {
  max-width: 800px;
}

.amti-form-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}

.amti-form-group {
  margin-bottom: 1.5em;
  width: 100%;
  padding: 0 10px;
}

.amti-form-row .amti-form-group {
  width: 50%;
}

@media (max-width: 768px) {
  .amti-form-row .amti-form-group {
    width: 100%;
  }
}

.amti-form-group label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
}

.amti-form-group input[type="text"],
.amti-form-group input[type="email"],
.amti-form-group select,
.amti-form-group textarea {
  width: 100%;
  padding: 0.5em;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.amti-form-group textarea {
  height: 100px;
}

.amti-form-group input[type="checkbox"] {
  margin-right: 0.5em;
}

.amti-form-group .description {
  font-size: 0.9em;
  color: #666;
  margin-top: 0.3em;
}

.amti-custom-fields {
  margin: 1.5em 0;
  padding: 1em;
  background-color: #f9f9f9;
  border-radius: 3px;
}

.amti-custom-fields h4 {
  margin-top: 0;
  margin-bottom: 1em;
}

.amti-payment-notice {
  margin: 1.5em 0;
  padding: 1em;
  background-color: #f5f5f5;
  border-left: 4px solid #0073aa;
  border-radius: 3px;
}

.amti-form-submit {
  margin-top: 2em;
}

.amti-submit-button {
  padding: 0.7em 1.5em;
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 1em;
  cursor: pointer;
}

.amti-submit-button:hover {
  background-color: #005d8c;
}

.amti-form-messages {
  margin-top: 1em;
}

.amti-success {
  padding: 0.7em 1em;
  background-color: #DFF2BF;
  color: #4F8A10;
  border-radius: 3px;
}

.amti-error {
  padding: 0.7em 1em;
  background-color: #FFBABA;
  color: #D8000C;
  border-radius: 3px;
}

.amti-notice {
  padding: 0.7em 1em;
  background-color: #FEEFB3;
  color: #9F6000;
  border-radius: 3px;
}

.amti-field-error {
  border-color: #D8000C !important;
}

.required {
  color: #D8000C;
}

/* Payment Confirmation Styles */
.amti-payment-confirmation {
  margin: 2em 0;
  padding: 1.5em;
  background-color: #f8f8f8;
  border-radius: 5px;
}

.amti-payment-confirmation h3 {
  margin-top: 0;
  margin-bottom: 0.75em;
}

.amti-payment-confirmation .amti-success {
  padding: 1em;
  background-color: #DFF2BF;
  color: #4F8A10;
  border-radius: 3px;
  margin-bottom: 1.5em;
}

.amti-payment-confirmation .amti-error {
  padding: 1em;
  background-color: #FFBABA;
  color: #D8000C;
  border-radius: 3px;
  margin-bottom: 1.5em;
}

.amti-payment-confirmation .amti-notice {
  padding: 1em;
  background-color: #FEEFB3;
  color: #9F6000;
  border-radius: 3px;
  margin-bottom: 1.5em;
}

.amti-payment-confirmation .amti-event-details {
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 1px solid #e5e5e5;
}

.amti-payment-confirmation .amti-event-details h4 {
  margin-top: 0;
  margin-bottom: 0.75em;
}