/**
 * Artcloud Event Form Public Styles
 * 
 * @package    Artcloud_Form
 * @subpackage Artcloud_Form/public/css
 * @since      1.0.0
 */

/* ==========================================================================
   Form Container
   ========================================================================== */
.artcloud-event-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.artcloud-event-form-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1d2327;
}

.artcloud-event-form-description {
  margin-bottom: 20px;
  color: #646970;
  line-height: 1.5;
}

/* ==========================================================================
   Form Layout
   ========================================================================== */
.artcloud-event-form {
  /* background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px; */
  /* padding: 20px; */
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
}
.artcloud-event-form-pricing {
  /* margin: 20px 0;
  padding: 15px; */
  /* background: #f5f5f5; */
  /* border-radius: 4px;
  border: 1px solid #ddd; */
}
.artcloud-event-form-grid-row {
  display: grid;
  gap: 15px;
  margin-bottom: 20px;
}

.artcloud-event-form-grid-row[data-columns="1"] {
  grid-template-columns: 1fr;
}

.artcloud-event-form-grid-row[data-columns="2"] {
  grid-template-columns: 1fr 1fr;
}

.artcloud-event-form-grid-row[data-columns="3"] {
  grid-template-columns: 1fr 1fr 1fr;
}

.artcloud-event-form-grid-col {
  min-height: 40px;
}

/* ==========================================================================
   Form Fields
   ========================================================================== */
/* .artcloud-event-form-field {
  margin-bottom: 20px;
} */

.artcloud-event-form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #1d2327;
  font-size: 14px;
}

.artcloud-required {
  color: #d63638;
  margin-left: 2px;
}

/* ==========================================================================
   Input Fields
   ========================================================================== */
.artcloud-event-form-input,
.artcloud-event-form-textarea,
.artcloud-event-form-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  box-sizing: border-box;
}

.artcloud-event-form-input:focus,
.artcloud-event-form-textarea:focus,
.artcloud-event-form-select:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}

.artcloud-event-form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* ==========================================================================
   Radio Buttons
   ========================================================================== */
.artcloud-event-form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.artcloud-event-form-radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.artcloud-event-form-radio {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: #2271b1;
}

.artcloud-event-form-radio-item label {
  margin: 0;
  font-weight: 400;
  cursor: pointer;
  color: #1d2327;
}

/* ==========================================================================
   Checkboxes
   ========================================================================== */
.artcloud-event-form-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.artcloud-event-form-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.artcloud-event-form-checkbox {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: #2271b1;
}

.artcloud-event-form-checkbox-item label {
  margin: 0;
  font-weight: 400;
  cursor: pointer;
  color: #1d2327;
}

/* ==========================================================================
   File Upload
   ========================================================================== */
.artcloud-event-form-file {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  box-sizing: border-box;
}

.artcloud-event-form-file:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */
.artcloud-event-form-submit {
  margin-top: 20px;
  text-align: center;
}

.artcloud-event-form-submit-btn {
  background: #2271b1;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.artcloud-event-form-submit-btn:hover {
  background: #135e96;
}

.artcloud-event-form-submit-btn:focus {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

/* ==========================================================================
   Messages
   ========================================================================== */
.artcloud-event-form-messages {
  margin-top: 15px;
  padding: 10px 15px;
  border-radius: 4px;
  font-weight: 500;
}

.artcloud-event-form-messages.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.artcloud-event-form-messages.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

.artcloud-event-form-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 10px 15px;
  border: 1px solid #ef4444;
  border-radius: 4px;
  margin: 10px 0;
}

/* ==========================================================================
   WordPress Notice Styles (for form messages)
   ========================================================================== */
.notice {
  padding: 11px 15px;
  margin: 15px 0;
  border-left-width: 4px;
  border-left-style: solid;
  background: #fff;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
}

.notice p {
  margin: 0;
  padding: 0;
}

.notice-success {
  border-left-color: #00a32a;
  background: #ecf7ed;
}

.notice-error {
  border-left-color: #d63638;
  background: #fcf0f1;
}

.notice-info {
  border-left-color: #72aee6;
  background: #e5f5fa;
}

.notice.is-dismissible {
  padding-right: 38px;
  position: relative;
}

.notice .notice-dismiss {
  position: absolute;
  top: 0;
  right: 1px;
  border: none;
  margin: 0;
  padding: 9px;
  background: none;
  color: #787c82;
  cursor: pointer;
}

.notice .notice-dismiss:hover {
  color: #1d2327;
}

/* ==========================================================================
   Repeatable Sections
   ========================================================================== */
/* .artcloud-parent-section {
  background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
  border: 2px solid #2271b1;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
}

.artcloud-parent-section::before {
  content: "";
} */

.artcloud-repeatable-section {
  /* background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px; */
  /* padding: 15px; */
  /* margin: 20px 0; */
  position: relative;
}

.artcloud-repeatable-section::before {
  content: "";
}

.artcloud-repeatable-controls {
  text-align: right;
  margin-bottom: 10px;
  padding: 5px;
}

button.artcloud-add-repeatable-btn {
  background: #2271b1;
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

button.artcloud-add-repeatable-btn:hover {
  background: #135e96;
}

.artcloud-repeatable-item {
  /* background: white;
  border: 1px solid #ddd;
  border-radius: 6px; */
  /* margin-bottom: 15px; */
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 15px;
  position: relative;
}
.artcloud-repeatable-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.artcloud-repeatable-item-title {
  font-weight: 500;
  color: #1d2327;
  font-size: 12px;
}

button.artcloud-remove-repeatable-btn {
  background: #d63638;
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
  margin-right: 0.5rem;
}

button.artcloud-remove-repeatable-btn:hover {
  background: #b32d2e;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
  .artcloud-event-form-container {
    padding: 15px;
  }

  .artcloud-event-form-grid-row[data-columns="2"],
  .artcloud-event-form-grid-row[data-columns="3"] {
    grid-template-columns: 1fr;
  }

  .artcloud-event-form-radio-group,
  .artcloud-event-form-checkbox-group {
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .artcloud-event-form {
    padding: 15px;
  }

  .artcloud-event-form-title {
    font-size: 1.25rem;
  }

  .artcloud-event-form-submit-btn {
    width: 100%;
    padding: 14px 24px;
  }

  /* Invoice table responsive */
  .artcloud-invoice-table {
    font-size: 13px;
  }

  .artcloud-invoice-table th,
  .artcloud-invoice-table td {
    padding: 10px 5px;
  }

  .artcloud-invoice-container {
    margin-bottom: 15px;
  }
}
