/* ═══════════════════════════════════════════════════════════
   Caribbean Masters Sponsor Plugin — style.css
   Primary: #26418B (Royal Blue)  Accent: #C9A84C (Gold)
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Variables ── */
.cm-wrap {
  --cm-blue:       #26418B;
  --cm-blue-dark:  #1a2e66;
  --cm-blue-light: #3558b8;
  --cm-gold:       #C9A84C;
  --cm-gold-light: #e8c97a;
  --cm-white:      #ffffff;
  --cm-off-white:  #f4f6fb;
  --cm-text:       #1a1a2e;
  --cm-muted:      #6b7a99;
  --cm-border:     rgba(38,65,139,0.15);
  --cm-shadow:     0 8px 40px rgba(38,65,139,0.14);
  --cm-radius:     10px;
  font-family: 'Barlow', sans-serif;
  color: var(--cm-text);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── HERO ── */
.cm-hero {
  background: linear-gradient(135deg, var(--cm-blue-dark) 0%, var(--cm-blue) 55%, var(--cm-blue-light) 100%);
  color: var(--cm-white);
  text-align: center;
  padding: 64px 32px 52px;
  border-radius: var(--cm-radius) var(--cm-radius) 0 0;
  position: relative;
  overflow: hidden;
}

.cm-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cm-hero__badge {
  display: inline-block;
  background: var(--cm-gold);
  color: var(--cm-blue-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 100px;
  
}

.cm-hero__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 8vw, 88px);
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0 0 8px;
  color: var(--cm-white);
}

.cm-hero__sub {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cm-gold-light);
  margin: 0 0 28px;
}

.cm-hero__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}
.cm-hero__divider span:not(.cm-diamond) {
  display: block; width: 60px; height: 1px;
  background: var(--cm-gold);
  opacity: 0.5;
}
.cm-diamond { color: var(--cm-gold); font-size: 12px; }

.cm-hero__tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* ── INTRO ── */
.cm-intro {
  background: var(--cm-off-white);
  border-left: 4px solid var(--cm-gold);
  padding: 24px 32px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}
.cm-intro p { margin: 0 0 6px; }
.cm-intro p:last-child { margin: 0; }
.cm-intro strong { color: var(--cm-blue); }
.cm-intro a { color: var(--cm-blue); font-weight: 600; }

/* ── PACKAGES GRID ── */
.cm-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 48px 0;
}

/* ── PACKAGE CARD ── */
.cm-pkg {
  background: var(--cm-white);
  border: 1.5px solid var(--cm-border);
  border-radius: var(--cm-radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--cm-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.cm-pkg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--cm-blue);
}
.cm-pkg:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(38,65,139,0.2);
}

/* Featured card */
.cm-pkg--featured {
  border-color: var(--cm-gold);
  background: linear-gradient(170deg, #fff 70%, #fffbf0 100%);
}
.cm-pkg--featured::before { background: var(--cm-gold); }

/* Golfer card */
.cm-pkg--golfer::before {
  background: linear-gradient(90deg, var(--cm-blue), var(--cm-blue-light));
}

/* Ribbon */
.cm-pkg__ribbon {
  position: absolute;
  top: 16px; right: -28px;
  background: var(--cm-gold);
  color: var(--cm-blue-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 36px;
  transform: rotate(45deg);
}

/* Card header */
.cm-pkg__header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cm-pkg__icon { font-size: 32px; line-height: 1; }
.cm-pkg__name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--cm-blue);
  margin: 0 0 2px;
}
.cm-pkg__price {
  font-size: 26px;
  font-weight: 700;
  color: var(--cm-gold);
  line-height: 1;
}
.cm-pkg__time {
  font-size: 11px;
  color: var(--cm-muted);
  letter-spacing: 0.05em;
  margin: 0;
  text-transform: uppercase;
}

/* Features list */
.cm-pkg__features {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.cm-pkg__features li {
  font-size: 14px;
  color: #3a4a6b;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--cm-border);
  line-height: 1.4;
}
.cm-pkg__features li:last-child { border-bottom: none; padding-bottom: 0; }

/* Price list variant */
.cm-pkg__features--prices li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cm-pkg__features--prices li strong {
  color: var(--cm-blue);
  font-weight: 700;
  white-space: nowrap;
  margin-left: 8px;
}

/* Golfer rate */
.cm-pkg__rate {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  color: var(--cm-blue);
  text-align: center;
  letter-spacing: 0.04em;
}
.cm-pkg__rate span {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--cm-muted);
  letter-spacing: 0;
}

/* Card CTA button */
.cm-pkg__btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: var(--cm-blue);
  color: var(--cm-white);
  border: none;
  border-radius: 6px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: auto;
}
.cm-pkg__btn:hover {
  background: var(--cm-blue-light);
  transform: scale(1.02);
}
.cm-pkg--featured .cm-pkg__btn {
  background: var(--cm-gold);
  color: var(--cm-blue-dark);
}
.cm-pkg--featured .cm-pkg__btn:hover { background: var(--cm-gold-light); }

/* ── FORM SECTION ── */
.cm-form-section {
  background: var(--cm-off-white);
  border: 1.5px solid var(--cm-border);
  border-radius: var(--cm-radius);
  padding: 52px 48px;
  margin-bottom: 40px;
  box-shadow: var(--cm-shadow);
}

.cm-form-header {
  text-align: center;
  margin-bottom: 40px;
}
.cm-section-tag {
  display: inline-block;
  background: var(--cm-blue);
  color: var(--cm-white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.cm-form-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: 0.05em;
  color: var(--cm-blue);
  margin: 0 0 10px;
}
.cm-form-header p {
  font-size: 15px;
  color: var(--cm-muted);
  margin: 0;
}

/* Form rows */
.cm-form__row { display: grid; gap: 20px; margin-bottom: 20px; }
.cm-form__row--1 { grid-template-columns: 1fr; }
.cm-form__row--2 { grid-template-columns: 1fr 1fr; }

/* Fields */
.cm-form__field { display: flex; flex-direction: column; gap: 6px; }
.cm-form__field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cm-blue);
}
.cm-form__field label .req { color: var(--cm-gold); }

.cm-form__field input,
.cm-form__field select,
.cm-form__field textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--cm-white);
  border: 1.5px solid var(--cm-border);
  border-radius: 7px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--cm-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.cm-form__field input::placeholder,
.cm-form__field textarea::placeholder { color: #b0bcd4; }
.cm-form__field input:focus,
.cm-form__field select:focus,
.cm-form__field textarea:focus {
  border-color: var(--cm-blue);
  box-shadow: 0 0 0 3px rgba(38,65,139,0.12);
}
.cm-form__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2326418B' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.cm-form__field textarea { resize: vertical; line-height: 1.6; }

/* Error state */
.cm-form__field input.cm-error,
.cm-form__field select.cm-error { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.1); }

/* Player total */
.cm-form__total {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cm-blue);
  color: var(--cm-white);
  border-radius: 7px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  padding: 13px 16px;
  min-height: 50px;
}

/* Submit area */
.cm-form__submit { text-align: center; margin-top: 32px; }

.cm-btn-submit {
  display: inline-block;
  padding: 18px 56px;
  background: var(--cm-blue);
  color: var(--cm-white);
  border: none;
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(38,65,139,0.3);
  position: relative;
  overflow: hidden;
}
.cm-btn-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.cm-btn-submit:hover {
  background: var(--cm-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(38,65,139,0.35);
}
.cm-btn-submit:hover::before { transform: translateX(100%); }
.cm-btn-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.cm-form__legal {
  margin-top: 16px;
  font-size: 13px;
  color: var(--cm-muted);
}
.cm-form__legal a { color: var(--cm-blue); font-weight: 600; }

/* Response messages */
.cm-form__response {
  margin-top: 24px;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}
.cm-form__response.cm-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.cm-form__response.cm-error-msg {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ── CONTACT BAR ── */
.cm-contact-bar {
  background: var(--cm-blue);
  border-radius: var(--cm-radius);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 48px;
}
.cm-contact-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.cm-contact-bar__item a {
  color: var(--cm-gold-light);
  font-weight: 600;
  text-decoration: none;
}
.cm-contact-bar__item a:hover { text-decoration: underline; }
.cm-contact-bar__icon { font-size: 16px; }
.cm-contact-bar__sep { color: rgba(255,255,255,0.3); font-size: 18px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .cm-form-section { padding: 32px 20px; }
  .cm-form__row--2 { grid-template-columns: 1fr; }
  .cm-packages { grid-template-columns: 1fr; }
  .cm-hero { padding: 48px 20px 40px; }
  .cm-contact-bar { flex-direction: column; gap: 12px; }
  .cm-contact-bar__sep { display: none; }
}
