/* EventPro Services Booking — Front-End Styles */

:root {
  --epb-primary:   #1a1a2e;
  --epb-accent:    #e94560;
  --epb-success:   #2ecc71;
  --epb-warning:   #f39c12;
  --epb-danger:    #e74c3c;
  --epb-info:      #3498db;
  --epb-border:    #dde1e7;
  --epb-bg:        #f8f9fb;
  --epb-card:      #ffffff;
  --epb-radius:    6px;
  --epb-shadow:    0 2px 8px rgba(0,0,0,.08);
  --epb-font:      -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Wrapper ── */
.epb-frontend-wrap { font-family: var(--epb-font); color: var(--epb-primary); max-width: 860px; margin: 0 auto; }

/* ── Notices ── */
.epb-notice { padding: 12px 16px; border-radius: var(--epb-radius); margin-bottom: 16px; font-size: 14px; }
.epb-notice--success { background: #d5f5e3; color: #1e8449; border-left: 4px solid #2ecc71; }
.epb-notice--error   { background: #fce4e4; color: #c0392b; border-left: 4px solid #e74c3c; }
.epb-notice--info    { background: #eaf0fb; color: #1a5276; border-left: 4px solid #3498db; }

/* ── Headings ── */
.epb-form-title { font-size: 24px; margin: 0 0 20px; display: flex; align-items: center; gap: 10px; }

/* ── Status pills ── */
.epb-status-pill { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.epb-status-pill--draft            { background: #ecf0f1; color: #7f8c8d; }
.epb-status-pill--pending-payment  { background: #fef9e7; color: #d68910; }
.epb-status-pill--paid             { background: #d5f5e3; color: #1e8449; }
.epb-status-pill--confirmed        { background: #d5f5e3; color: #145a32; }
.epb-status-pill--completed        { background: #d5f5e3; color: #145a32; }
.epb-status-pill--cancelled        { background: #fce4e4; color: #c0392b; }

/* ── Form sections ── */
.epb-form-section { background: var(--epb-card); border: 1px solid var(--epb-border); border-radius: var(--epb-radius); padding: 20px 24px; margin-bottom: 18px; box-shadow: var(--epb-shadow); }
.epb-form-section h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--epb-primary); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--epb-border); }

/* ── Fields ── */
.epb-field { margin-bottom: 14px; }
.epb-field label { display: block; font-size: 12px; font-weight: 600; color: #555; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.epb-required { color: var(--epb-danger); }
.epb-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .epb-field-row { grid-template-columns: 1fr; } }

.epb-input {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--epb-border); border-radius: 4px;
  padding: 8px 10px; font-size: 14px; background: var(--epb-bg);
  font-family: var(--epb-font); transition: border-color .15s;
}
.epb-input:focus { outline: none; border-color: var(--epb-accent); background: #fff; }
.epb-field--sm { min-width: 90px; }

/* ── Line items ── */
#epb-line-items { margin-bottom: 12px; }
.epb-line-item { border: 1px solid var(--epb-border); border-radius: 4px; padding: 12px; margin-bottom: 8px; background: var(--epb-bg); }
.epb-line-item__svc { margin-bottom: 8px; }
.epb-line-item__controls { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.epb-line-total { font-weight: 700; color: var(--epb-primary); align-self: flex-end; padding: 8px 0 9px; min-width: 70px; }
.epb-add-service-row { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.epb-add-service-row .epb-input { flex: 1; }

/* ── Pricing summary ── */
.epb-pricing-summary { margin-top: 16px; }
.epb-summary-table { width: 100%; border-collapse: collapse; }
.epb-summary-table td { padding: 6px 0; border-bottom: 1px solid var(--epb-border); font-size: 14px; }
.epb-summary-table td:last-child { text-align: right; }
.epb-summary-total-row td { font-size: 16px; padding-top: 10px; border-top: 2px solid var(--epb-primary); border-bottom: none; }

/* ── Buttons ── */
.epb-btn { display: inline-block; padding: 10px 20px; border-radius: var(--epb-radius); font-size: 14px; font-weight: 600; cursor: pointer; border: 2px solid transparent; font-family: var(--epb-font); text-decoration: none; transition: all .15s; line-height: 1.4; }
.epb-btn--primary { background: var(--epb-primary); color: #fff; border-color: var(--epb-primary); }
.epb-btn--primary:hover { background: var(--epb-accent); border-color: var(--epb-accent); color: #fff; }
.epb-btn--secondary { background: #fff; color: var(--epb-primary); border-color: var(--epb-border); }
.epb-btn--secondary:hover { border-color: var(--epb-primary); }
.epb-btn--outline { background: transparent; color: var(--epb-accent); border-color: var(--epb-accent); }
.epb-btn--outline:hover { background: var(--epb-accent); color: #fff; }
.epb-btn--remove { background: transparent; border: none; color: var(--epb-danger); cursor: pointer; font-size: 18px; padding: 0 4px; line-height: 1; align-self: flex-end; margin-bottom: 8px; }
.epb-btn--sm { padding: 5px 12px; font-size: 12px; }

/* ── Form actions ── */
.epb-form-actions { display: flex; gap: 12px; flex-wrap: wrap; padding: 20px 0; align-items: center; }

/* ── Order info ── */
.epb-order-info { font-size: 13px; color: #555; margin-top: 12px; }
.epb-order-info .epb-label { font-weight: 700; }

/* ── My Bookings table ── */
.epb-my-bookings-actions { margin-bottom: 16px; }
.epb-table-wrap { overflow-x: auto; }
.epb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.epb-table th { background: var(--epb-primary); color: #fff; text-align: left; padding: 10px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.epb-table td { padding: 10px 12px; border-bottom: 1px solid var(--epb-border); vertical-align: middle; }
.epb-table tr:hover td { background: var(--epb-bg); }
.epb-actions-cell { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.epb-link { color: var(--epb-accent); text-decoration: none; font-weight: 600; }
.epb-link:hover { text-decoration: underline; }

/* Disabled state for buttons when form page is not configured */
.epb-btn--disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

