/* =====================================================
   CUSTOM PACKAGES PAGE — CSS
   Matches live site at /custom-packages exactly
   ===================================================== */

[hidden] { display: none !important; }

/* =====================================================
   BANNER (reuses tan-page-banner from blog-detail.css)
   ===================================================== */
.cpk-banner__sub {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary-color, #e79520);
  margin: 8px 0 12px;
  display: block;
}

/* =====================================================
   SECTION WRAPPER
   ===================================================== */
.cpk-section {
  padding: 56px 0 72px;
  background: #f3f4f6;
  font-family: var(--font-family-primary, "Jost"), sans-serif;
}

.cpk-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Two-column layout: form | sidebar */
.cpk-layout {
  display: grid;
  grid-template-columns: 1fr 385px;
  gap: 32px;
  align-items: start;
}

/* =====================================================
   FORM (LEFT COLUMN)
   ===================================================== */
.cpk-form {
  display: flex;
  flex-direction: column;
}

/* =====================================================
   ACCORDION SECTIONS
   ===================================================== */
.cpk-accordion {
  background: transparent;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  margin-bottom: 32px;
  overflow: hidden;
}

.cpk-accordion--last {
  margin-bottom: 0;
}

/* Header (clickable bar) */
.cpk-accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  background: #f9fafb;
  color: #1f2937;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  user-select: none;
  transition: background 0.2s, color 0.2s;
}

/* Open state — orange */
.cpk-accordion__header--open {
  background: var(--primary-color, #e79520);
  color: #fff;
}

/* Title group (icon + h3 + badge) */
.cpk-accordion__title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cpk-accordion__title i {
  font-size: 1.1rem;
  color: var(--primary-color, #e79520);
  transition: color 0.2s;
}

.cpk-accordion__header--open .cpk-accordion__title i {
  color: #fff;
}

.cpk-accordion__title h3 {
  font-size: 1rem;
  font-weight: 600;
  color: inherit;
  margin: 0;
}

/* Count badge in header */
.cpk-badge {
  background: var(--primary-color, #e79520);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.cpk-accordion__header--open .cpk-badge {
  background: rgba(255, 255, 255, 0.25);
}

/* Chevron */
.cpk-accordion__chevron {
  font-size: 1rem;
  color: inherit;
  flex-shrink: 0;
  transition: transform 0.2s;
}

/* Body — visible */
.cpk-accordion__body {
  padding: 32px;
  background: #fff;
}

/* Body — hidden */
.cpk-accordion__body--hidden {
  display: none;
}

/* =====================================================
   ACTIVITY CARDS GRID
   ===================================================== */
.cpk-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Individual card */
.cpk-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  border: 2px solid #f3f4f6;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  min-height: 102px;
  transition: border-color 0.2s, background 0.2s;
}

.cpk-card:hover {
  border-color: var(--primary-color, #e79520);
}

.cpk-card--selected {
  border-color: var(--primary-color, #e79520);
  background: #fffbf2;
}

/* Thumbnail */
.cpk-card__image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.cpk-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badge overlaid on image */
.cpk-card__badge {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  border-radius: 0 4px 0 0;
}

.cpk-card__badge--trek    { background: var(--primary-color, #e79520); }
.cpk-card__badge--cultural { background: #8b5cf6; }
.cpk-card__badge--adventure { background: #f59e0b; }

/* Card text content */
.cpk-card__content {
  flex: 1;
  min-width: 0;
}

.cpk-card__content h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cpk-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cpk-card__details span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6b7280;
}

/* Checkbox circle (right side) */
.cpk-card__checkbox {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color, #e79520);
  font-size: 1.1rem;
}

/* Filled check when selected */
.cpk-card--selected .cpk-card__checkbox .fa-regular::before {
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  content: "\f058";
}

/* =====================================================
   FIELDS GRID (Package Details + Your Details)
   ===================================================== */
.cpk-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.cpk-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cpk-field__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.cpk-field__label i {
  color: var(--primary-color, #e79520);
}

/* Stepper input group: [−] [input] [+] */
.cpk-input-group {
  display: flex;
  align-items: center;
  border: 2px solid #f3f4f6;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.cpk-stepper__btn {
  flex-shrink: 0;
  width: 40px;
  height: 50px;
  background: #f9fafb;
  color: #6b7280;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background 0.15s;
}

.cpk-stepper__btn:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.cpk-number-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 16px;
  font-size: 16px;
  color: #1f2937;
  text-align: center;
  font-family: var(--font-family-primary, "Jost"), sans-serif;
  min-width: 0;
}

.cpk-number-input:focus { outline: none; }
.cpk-number-input::-webkit-outer-spin-button,
.cpk-number-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cpk-number-input[type=number] { -moz-appearance: textfield; }

/* Date / text inputs */
.cpk-date-input,
.cpk-text-input {
  padding: 16px;
  border: 2px solid #f3f4f6;
  border-radius: 8px;
  font-size: 16px;
  color: #1f2937;
  background: #fff;
  font-family: var(--font-family-primary, "Jost"), sans-serif;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.cpk-date-input:focus,
.cpk-text-input:focus {
  outline: none;
  border-color: var(--primary-color, #e79520);
}

.cpk-text-input--error {
  border-color: #ef4444 !important;
}

/* =====================================================
   OPTIONS LIST (Package Options accordion)
   ===================================================== */
.cpk-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cpk-option {
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
}

.cpk-option__label {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  cursor: pointer;
}

.cpk-option__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color, #e79520);
  cursor: pointer;
}

.cpk-option__content h5 {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 2px;
}

.cpk-option__content p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.cpk-sidebar {
  position: sticky;
  top: 100px;
}

.cpk-summary {
  background: #fff;
  border-radius: 12px;
  padding: 48px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px;
  font-family: var(--font-family-primary, "Jost"), sans-serif;
}

.cpk-summary__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  margin-bottom: 48px;
  border-bottom: 2px solid #f3f4f6;
}

.cpk-summary__title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.cpk-summary__content {
  margin-bottom: 32px;
}

.cpk-summary__section {
  margin-bottom: 48px;
}

.cpk-summary__section--last {
  margin-bottom: 0;
}

.cpk-summary__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 24px;
}

.cpk-summary__section-title i {
  color: var(--primary-color, #e79520);
}

/* Activities list */
.cpk-summary__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cpk-summary__empty {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.cpk-summary__activity-item {
  font-size: 14px;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
}

/* Options in sidebar */
.cpk-summary__options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cpk-sum-opt {
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
}

.cpk-sum-opt__label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: default;
}

.cpk-sum-opt__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color, #e79520);
  pointer-events: none;
}

.cpk-sum-opt__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
}

.cpk-sum-opt__desc {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

/* Package Details in sidebar */
.cpk-summary__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cpk-summary__detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cpk-summary__detail-label {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}

.cpk-summary__detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

/* Action buttons */
.cpk-summary__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.cpk-summary__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  border: none;
  font-family: var(--font-family-primary, "Jost"), sans-serif;
  transition: opacity 0.2s;
}

.cpk-summary__btn--primary {
  background: var(--primary-color, #e79520);
  color: #fff;
}

.cpk-summary__btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cpk-summary__btn--primary:not(:disabled):hover {
  opacity: 0.9;
}

.cpk-summary__btn--secondary {
  background: #f9fafb;
  color: #1f2937;
  border: 2px solid #f3f4f6;
}

.cpk-summary__btn--secondary:hover {
  background: #f3f4f6;
}

/* Success / Error messages */
.cpk-summary__success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  margin-top: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #15803d;
  font-size: 14px;
}

.cpk-summary__error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  margin-top: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 14px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  .cpk-layout {
    grid-template-columns: 1fr 320px;
  }
  .cpk-summary {
    padding: 32px;
  }
}

@media (max-width: 900px) {
  .cpk-layout {
    grid-template-columns: 1fr;
  }
  .cpk-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .cpk-section {
    padding: 32px 0 48px;
  }
  .cpk-cards-grid,
  .cpk-fields-grid {
    grid-template-columns: 1fr;
  }
  .cpk-summary__details {
    grid-template-columns: 1fr;
  }
  .cpk-summary {
    padding: 24px;
  }
  .cpk-card__content h4 {
    white-space: normal;
  }
}
