/* ==========================================================================
   WINGPAL POST AN ACTIVITY & PREVIEW STYLES
   ========================================================================== */

.post-act-main {
  padding: 24px 0 60px;
}

.post-act-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 1024px) {
  .post-act-grid {
    grid-template-columns: 1fr;
  }
}

/* Stepper */
.post-stepper-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  margin-bottom: 24px;
  max-width: 540px;
}

.post-stepper-line {
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  height: 2px;
  background-color: #E2E8F0;
  z-index: 1;
}

.post-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
}

.post-step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 2px solid #CBD5E1;
  color: #64748B;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-step-node.active .post-step-circle {
  background-color: #0D9488;
  border-color: #0D9488;
  color: #FFFFFF;
}

.post-step-node.completed .post-step-circle {
  background-color: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
}

.post-step-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
}

.post-step-node.active .post-step-label {
  color: #0D9488;
  font-weight: 800;
}

/* Main Form Card */
.post-form-card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 20px -5px rgba(15, 23, 42, 0.05);
}

.post-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.post-card-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: #F0FDFA;
  border: 1.5px solid #CCFBF1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0D9488;
}

.post-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 2px;
}

.post-card-subtitle {
  font-size: 13.5px;
  color: #64748B;
  margin: 0;
}

/* Form Fields */
.post-field-group {
  margin-bottom: 20px;
}

.post-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.post-field-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
}

.post-required-star {
  color: #EA580C;
}

.post-char-count {
  font-size: 12px;
  color: #94A3B8;
  font-weight: 600;
}

.post-text-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  font-size: 14px;
  color: #0F172A;
  font-family: inherit;
  outline: none;
  transition: all 0.15s ease;
}

.post-text-input:focus {
  border-color: #0D9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.post-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  font-size: 14px;
  color: #0F172A;
  font-family: inherit;
  outline: none;
  min-height: 100px;
  resize: vertical;
  line-height: 1.45;
  transition: all 0.15s ease;
}

.post-textarea:focus {
  border-color: #0D9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

/* Activity Type Pills */
.activity-types-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

@media (max-width: 680px) {
  .activity-types-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.act-type-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid #E2E8F0;
  background-color: #FFFFFF;
  border-radius: var(--radius-full, 9999px);
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.act-type-pill:hover {
  border-color: #CBD5E1;
  background-color: #F8FAFC;
}

.act-type-pill.active {
  background-color: #0D9488;
  border-color: #0D9488;
  color: #FFFFFF;
}

.act-type-pill.active svg {
  stroke: #FFFFFF;
}

/* Date / Time Row */
.post-datetime-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .post-datetime-grid {
    grid-template-columns: 1fr;
  }
}

.post-input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.post-input-icon-left {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: #64748B;
  pointer-events: none;
}

.post-input-icon-right {
  position: absolute;
  right: 14px;
  width: 17px;
  height: 17px;
  color: #64748B;
  pointer-events: none;
}

.post-select-field {
  width: 100%;
  padding: 11px 36px 11px 38px;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0F172A;
  background-color: #FFFFFF;
  outline: none;
  cursor: pointer;
  appearance: none;
}

.post-select-field:focus {
  border-color: #0D9488;
}

/* Group Size & Info */
.post-groupsize-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .post-groupsize-row {
    grid-template-columns: 1fr;
  }
}

.post-info-bubble {
  background-color: #F0FDFA;
  border: 1px solid #CCFBF1;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #0F766E;
  font-weight: 600;
}

.post-info-bubble svg {
  width: 18px;
  height: 18px;
  color: #0D9488;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   FREE POSTS QUOTA & ONE-TIME PAYMENT BOX (User Requirement)
   -------------------------------------------------------------------------- */
.post-quota-payment-card {
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

.post-quota-payment-card.free-mode {
  background-color: #F0FDF4;
  border: 1.5px solid #86EFAC;
}

.post-quota-payment-card.paid-mode {
  background-color: #FFF7ED;
  border: 1.5px solid #FDBA74;
}

.quota-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.quota-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 800;
}

.free-mode .quota-badge-pill {
  background-color: #DCFCE7;
  color: #15803D;
}

.paid-mode .quota-badge-pill {
  background-color: #FFEDD5;
  color: #C2410C;
}

/* State toggle switch for testing/demonstration */
.quota-toggle-link {
  font-size: 12px;
  font-weight: 700;
  color: #0D9488;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
}

.quota-explanation {
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
  margin: 0 0 14px;
}

.paid-fee-summary-box {
  background-color: #FFFFFF;
  border: 1px solid #FED7AA;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 10px;
}

.fee-line-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
  margin-bottom: 6px;
}

.fee-line-row.total-row {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
  margin-bottom: 0;
}

.payment-method-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
  font-size: 12.5px;
}

/* Actions Row */
.post-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #F1F5F9;
}

.btn-post-draft {
  padding: 11px 24px;
  background-color: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-full, 9999px);
  color: #334155;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-post-draft:hover {
  background-color: #F8FAFC;
  border-color: #94A3B8;
}

.btn-post-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background-color: #0D9488;
  border: none;
  border-radius: var(--radius-full, 9999px);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}

.btn-post-preview:hover {
  background-color: #0F766E;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

/* --------------------------------------------------------------------------
   RIGHT SIDEBAR: GREAT ACTIVITIES BANNER
   -------------------------------------------------------------------------- */
.post-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-promo-card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px -5px rgba(15, 23, 42, 0.05);
}

.post-promo-thumb {
  width: 100%;
  height: 125px;
  object-fit: cover;
  display: block;
}

.post-promo-content {
  padding: 20px;
}

.post-promo-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #CCFBF1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0D9488;
  margin-bottom: 12px;
}

.post-promo-title {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
  margin: 0 0 8px;
}

.post-promo-subtitle {
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
  margin: 0 0 16px;
}

.post-promo-check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-promo-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
}

.promo-check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #0D9488;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.post-guidelines-card {
  background-color: #F0FDFA;
  border: 1px solid #CCFBF1;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.post-guidelines-icon {
  width: 22px;
  height: 22px;
  color: #0D9488;
  flex-shrink: 0;
  margin-top: 2px;
}

.post-guidelines-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
  margin: 0 0 4px;
  font-weight: 600;
}

.post-guidelines-link {
  font-size: 12.5px;
  font-weight: 700;
  color: #0D9488;
  text-decoration: none;
}

.post-guidelines-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   PREVIEW MODAL (User Requirement: Preview before publishing)
   -------------------------------------------------------------------------- */
.preview-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.preview-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.preview-modal-dialog {
  background-color: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-modal-backdrop.active .preview-modal-dialog {
  transform: scale(1);
}

.preview-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-tag-pill {
  padding: 3px 10px;
  background-color: #F0FDFA;
  color: #0D9488;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 800;
}

.preview-card-body {
  padding: 24px;
}

.preview-activity-hero-thumb {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 18px;
}

.preview-act-title {
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 10px;
}

.preview-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.preview-chip svg {
  width: 14px;
  height: 14px;
  color: #0D9488;
}

.preview-act-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
  background-color: #F8FAFC;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.preview-billing-strip {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}

.preview-modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.post-datetime-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-datetime-grid input { display: block; min-width: 0; margin-top: 6px; }
#actPhotos { height: auto; padding: 10px; }
#activityFormError { color: #b91c1c; }
@media (max-width: 560px) {
  .post-datetime-grid { grid-template-columns: minmax(0, 1fr); }
  .post-datetime-grid input { font-size: 16px; }
}

.post-page-header .dash-nav-right { gap: 12px; }
.post-page-header .user-header-avatar { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; }
.post-photo-input { display: none; }
.post-photo-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  border: 1.5px dashed #85c9c1;
  border-radius: 12px;
  background: #f0fdfa;
  color: #0f766e;
  font: inherit;
  font-weight: 700;
  text-align: left;
}
.post-photo-picker svg { width: 22px; height: 22px; flex-shrink: 0; }
.post-photo-previews { display: flex; flex-wrap: wrap; gap: 8px; }
.post-photo-previews img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; margin-top: 8px; }
#actPhotoHelp { display: block; margin-top: 6px; color: #64748b; }
.post-datetime-grid label { min-width: 0; }
.post-datetime-grid input, #actCity { appearance: none; width: 100%; box-sizing: border-box; background: #fff; min-height: 46px; }
.post-datetime-grid input::-webkit-date-and-time-value { text-align: left; min-height: 1.25em; }
.post-actions-row { gap: 10px; }
#activityDraftStatus { color: #475569; font-size: 13px; }
#activityDraftStatus:empty { display: none; }
.post-success-dialog { position: fixed; inset: 0; margin: auto; width: min(420px, calc(100% - 32px)); padding: 26px; border: 0; border-radius: 20px; background: #fff; color: #0f172a; text-align: center; box-shadow: 0 12px 50px #0f172a33; }
.post-success-dialog::backdrop { background: #0f172a80; }
.post-success-mark { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #e7f8f3; color: #0d9488; margin-bottom: 12px; }
.post-success-mark svg { width: 25px; height: 25px; }
.post-success-dialog p { color: #475569; margin: 8px 0 20px; }
.post-success-actions { display: grid; gap: 8px; }
.post-success-actions a { justify-content: center; }
@media (max-width: 560px) {
  .post-page-header .nav-container { height: 64px; }
  .post-page-header .official-brand-logo { width: 110px; height: auto; }
  .post-form-card { padding-inline: 18px; }
  .post-actions-row { flex-direction: column-reverse; align-items: stretch; }
  .post-actions-row button { justify-content: center; width: 100%; min-height: 44px; }
}
.post-date-label { display: flex; gap: 7px; align-items: center; }
.post-date-icon { width: 17px; height: 17px; color: #0d9488; flex-shrink: 0; }
@media (max-width: 560px) {
  .preview-modal-footer { flex-wrap: wrap; gap: 8px; }
}
.post-schedule-error { color: #b91c1c; font-size: 14px; margin-top: -8px; }
.post-datetime-grid input[aria-invalid="true"] { border-color: #b91c1c; }
.btn-post-preview:disabled,
.btn-post-preview:disabled:hover {
  background: #e2e8f0;
  color: #475569;
  box-shadow: none;
  cursor: default;
  transform: none;
}

.preview-card-body > .preview-tag-pill { display: inline-block; margin-bottom: 8px; }
.preview-facts { list-style: none; padding: 0; margin: 0 0 18px; border-block: 1px solid #e2e8f0; }
.preview-facts li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; font-size: 14px; }
.preview-facts li + li { border-top: 1px solid #eef2f6; }
.preview-facts svg { width: 19px; height: 19px; color: #0d9488; flex: 0 0 auto; margin-top: 2px; }
.preview-facts div { min-width: 0; overflow-wrap: anywhere; }
.preview-facts span { display: block; color: #475569; }
.preview-about-heading { margin: 0 0 4px; font-size: 14px; color: #0f172a; }
.preview-card-body .preview-act-desc { padding: 0; background: transparent; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-billing-strip[hidden] { display: none; }
.preview-billing-strip { margin: 16px 0 0; }
.preview-modal-footer #postFeePayment,
.preview-modal-footer #postFeeError { flex: 1 0 100%; }
@media (max-width: 560px) {
  .preview-card-body { padding: 16px; }
  .preview-activity-hero-thumb { height: 144px; margin-bottom: 12px; }
  .preview-modal-header, .preview-modal-footer { padding-inline: 16px; }
}

.post-modal-stepper { margin: 12px 16px 0; }
.post-modal-stepper .post-step-label { font-size: 12px; }
.post-success-dialog .post-modal-stepper { margin: 0 0 16px; }

.activity-access {
  box-sizing: border-box;
  width: min(480px, calc(100% - 32px));
  margin: clamp(24px, 8vw, 56px) auto;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.activity-access h1 { margin: 0; font-size: 22px; }
.activity-access p { margin: 8px 0 0; color: #475569; }

#activityAccessActions:not([hidden]) {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

#activityAccessActions a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 11px;
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}

#activityAccessActions a:first-child {
  background: #0f766e;
  color: #fff;
}

.post-share-panel {
  margin-bottom: 16px;
  text-align: left;
}
.post-share-panel label {
  display: block;
  margin-bottom: 6px;
  font-size: .875rem;
  font-weight: 700;
}
.post-share-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.post-share-controls input {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  font-size: .875rem;
}
.post-share-controls button {
  min-height: 44px;
  white-space: nowrap;
}
#publishedActivityShareStatus {
  font-size: .875rem;
  color: #0f766e;
}
#publishedActivityShareStatus:not(:empty) {
  margin-top: 6px;
}
