/**
 * Styles for Checklist Download Gutenberg Block
 * Frontend and shared styles
 */

.promtel-checklist-download {
  --pcd-bg: rgba(211, 217, 234, 0.3);
  --pcd-radius: 8px;
  --pcd-card-width: 314px;
  --pcd-card-bg: #ffffff;
  --pcd-badge-bg: #0a142d;
  --pcd-badge-text: #ffffff;
  --pcd-badge-icon: #5aeb9c;
  --pcd-card-title: #0a142d;
  --pcd-heading: #0a142d;
  --pcd-desc: #0a142d;
  --pcd-input-bg: rgba(211, 217, 234, 0.3);
  --pcd-input-border: #d3d9ea;
  --pcd-input-text: #4b516b;
  --pcd-btn-bg: #5aeb9c;
  --pcd-btn-text: #222b42;
  --pcd-btn-hover-bg: #222b42;
  --pcd-btn-hover-text: #5aeb9c;

  background-color: var(--pcd-bg);
  border-radius: var(--pcd-radius);
  padding: 48px;
  width: 100%;
  box-sizing: border-box;
  font-family: var(
    --f-family,
    "Figtree",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif
  );
  margin-top: clamp(48px, 7.64vw, 100px);
  margin-bottom: clamp(48px, 7.64vw, 110px);
}

/* ==========================================================================
   Top Checklist Preview Card
   ========================================================================== */
.promtel-checklist-download .checklist-download-card-wrap {
  margin-bottom: 48px;
  display: flex;
  justify-content: flex-start;
}

.promtel-checklist-download .checklist-download-card {
  width: 100%;
  max-width: var(--pcd-card-width, 314px);
  background-color: var(--pcd-card-bg, #ffffff);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 24px 54px rgba(10, 20, 45, 0.11),
    0 4px 16px rgba(10, 20, 45, 0.05);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.promtel-checklist-download .checklist-card-header {
  padding: 30px 30px 28px;
  background-color: var(--pcd-card-bg, #ffffff);
  box-sizing: border-box;
}

/* Pill Badge: ✓ FREE CHECKLIST */
.promtel-checklist-download .checklist-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--pcd-badge-bg, #0a142d);
  color: var(--pcd-badge-text, #ffffff);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 14px;
  line-height: 1;
}

.promtel-checklist-download .checklist-card-pill-icon {
  width: 9px;
  height: 8px;
  color: var(--pcd-badge-icon, #5aeb9c);
  flex-shrink: 0;
  display: block;
}

.promtel-checklist-download .checklist-card-pill-text {
  font-family: inherit;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pcd-badge-text, #ffffff);
  line-height: 1;
}

/* Card Title */
.promtel-checklist-download .checklist-card-title {
  font-family: inherit;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.22;
  color: var(--pcd-card-title, #0a142d);
  margin: 0;
  padding: 0;
  letter-spacing: -0.01em;
  word-break: break-word;
}

/* Card Bottom Photo + Circular Logo Badge */
.promtel-checklist-download .checklist-card-media {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #d8dee9;
}

.promtel-checklist-download .checklist-card-media .checklist-card-photo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.promtel-checklist-download .checklist-card-logo-badge {
  position: absolute;
  left: 29px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(10, 20, 45, 0.18);
  z-index: 2;
  overflow: hidden;
  user-select: none;
}

.promtel-checklist-download .checklist-card-logo-badge .checklist-card-logo-img {
  width: 60% !important;
  height: 60% !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.promtel-checklist-download .checklist-card-logo-badge .checklist-card-default-logo {
  width: 58%;
  height: 58%;
  display: block;
  margin: 0 auto;
}

/* Standalone Image Mode */
.promtel-checklist-download .checklist-download-standalone-media {
  width: 100%;
  max-width: var(--pcd-card-width, 314px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 24px 54px rgba(10, 20, 45, 0.11),
    0 4px 16px rgba(10, 20, 45, 0.05);
}

.promtel-checklist-download .checklist-download-standalone-img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================================
   Heading & Description Content
   ========================================================================== */
.promtel-checklist-download .checklist-download-body {
  width: 100%;
}

.promtel-checklist-download .checklist-download-heading {
  font-family: inherit !important;
  font-size: var(--f-32, 32px) !important;
  font-weight: var(--w-400, 400) !important;
  line-height: 1.25 !important;
  color: var(--pcd-heading, #0a142d) !important;
  margin: 0 0 28px 0 !important;
  padding: 0 !important;
  letter-spacing: 0 !important;
  word-break: break-word;
}

.promtel-checklist-download .checklist-download-description {
  font-family: inherit;
  font-size: var(--f-21, 21px);
  font-weight: var(--w-400, 400);
  line-height: 1.65;
  color: var(--pcd-desc, #0a142d);
  letter-spacing: 0.02em;
  margin: 0 0 32px 0;
  word-break: break-word;
}

.promtel-checklist-download .checklist-download-description p {
  margin: 0 0 16px 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}

.promtel-checklist-download .checklist-download-description p:last-child {
  margin-bottom: 0 !important;
}

/* ==========================================================================
   Form & Inputs (Built-in + Shortcode Support)
   ========================================================================== */
.promtel-checklist-download .promtel-cd-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.promtel-checklist-download .promtel-cd-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.promtel-checklist-download .checklist-download-form {
  width: 100%;
  margin: 0;
}

.promtel-checklist-download .checklist-download-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.promtel-checklist-download .checklist-download-field {
  width: 100%;
}

.promtel-checklist-download .checklist-download-input,
.promtel-checklist-download .checklist-download-shortcode-wrap input[type="text"],
.promtel-checklist-download .checklist-download-shortcode-wrap input[type="email"] {
  width: 100%;
  height: 56px;
  padding: 12px 24px;
  box-sizing: border-box;
  font-family: var(--f-family, "Figtree", sans-serif);
  font-size: var(--f-16, 16px);
  font-weight: var(--w-400, 400);
  line-height: 1.4;
  color: var(--pcd-input-text, #4b516b);
  background-color: var(--pcd-input-bg, rgba(211, 217, 234, 0.3));
  border: 1px solid var(--pcd-input-border, #d3d9ea);
  border-radius: 6px;
  outline: none;
  box-shadow: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.promtel-checklist-download .checklist-download-input::placeholder,
.promtel-checklist-download .checklist-download-shortcode-wrap input::placeholder {
  color: var(--pcd-input-text, #4b516b);
  opacity: 1;
}

.promtel-checklist-download .checklist-download-input:focus,
.promtel-checklist-download .checklist-download-shortcode-wrap input[type="text"]:focus,
.promtel-checklist-download .checklist-download-shortcode-wrap input[type="email"]:focus {
  background-color: rgba(211, 217, 234, 0.5);
  border-color: #b4bfd8;
}

.promtel-checklist-download .checklist-download-input:focus-visible {
  outline: 2px solid var(--pcd-heading, #0a142d);
  outline-offset: 2px;
}

/* Submit Button */
.promtel-checklist-download .checklist-download-submit-wrap {
  margin-top: 40px;
  width: 100%;
}

.promtel-checklist-download .checklist-download-submit,
.promtel-checklist-download .checklist-download-shortcode-wrap input[type="submit"],
.promtel-checklist-download .checklist-download-shortcode-wrap button[type="submit"] {
  width: 100%;
  min-height: 56px;
  padding: 16px 28px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--pcd-btn-bg, #5aeb9c);
  color: var(--pcd-btn-text, #222b42);
  font-family: var(--f-family, "Figtree", sans-serif);
  font-size: var(--f-16, 16px);
  font-weight: var(--w-700, 700);
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    opacity 0.2s ease;
}

.promtel-checklist-download .checklist-download-submit:hover,
.promtel-checklist-download .checklist-download-shortcode-wrap input[type="submit"]:hover,
.promtel-checklist-download .checklist-download-shortcode-wrap button[type="submit"]:hover {
  background-color: var(--pcd-btn-hover-bg, #222b42);
  color: var(--pcd-btn-hover-text, #5aeb9c);
}

.promtel-checklist-download .checklist-download-submit:focus-visible {
  outline: 2px solid var(--pcd-heading, #0a142d);
  outline-offset: 3px;
}

.promtel-checklist-download .checklist-download-submit.is-submitting {
  opacity: 0.7;
  cursor: wait;
}

/* Status / Feedback Message */
.promtel-checklist-download .checklist-download-feedback {
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.promtel-checklist-download .checklist-download-feedback.is-success {
  background-color: rgba(90, 235, 156, 0.2);
  border: 1px solid #37a84c;
  color: #0a142d;
}

.promtel-checklist-download .checklist-download-feedback.is-error {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid #dc2626;
  color: #991b1b;
}

/* ==========================================================================
   Responsive Design (Tablet & Mobile)
   ========================================================================== */
@media only screen and (max-width: 767px) {
  .promtel-checklist-download {
    padding: 32px 24px;
    margin-top: 32px;
    margin-bottom: 32px;
  }

  .promtel-checklist-download .checklist-download-card-wrap {
    margin-bottom: 36px;
  }

  .promtel-checklist-download .checklist-download-heading {
    font-size: 26px !important;
    margin-bottom: 20px !important;
  }

  .promtel-checklist-download .checklist-download-description {
    font-size: 18px;
    line-height: 1.55;
    margin-bottom: 26px;
  }

  .promtel-checklist-download .checklist-download-submit-wrap {
    margin-top: 28px;
  }
}

@media only screen and (max-width: 480px) {
  .promtel-checklist-download {
    padding: 24px 18px;
  }

  .promtel-checklist-download .checklist-download-card,
  .promtel-checklist-download .checklist-download-standalone-media {
    max-width: 100%;
  }

  .promtel-checklist-download .checklist-card-header {
    padding: 24px 22px 22px;
  }

  .promtel-checklist-download .checklist-card-title {
    font-size: 21px;
  }

  .promtel-checklist-download .checklist-card-media {
    height: 180px;
  }

  .promtel-checklist-download .checklist-download-heading {
    font-size: 23px !important;
    margin-bottom: 16px !important;
  }

  .promtel-checklist-download .checklist-download-description {
    font-size: 16px;
    margin-bottom: 22px;
  }

  .promtel-checklist-download .checklist-download-input {
    height: 50px;
    padding: 10px 16px;
    font-size: 15px;
  }

  .promtel-checklist-download .checklist-download-submit {
    min-height: 50px;
    padding: 14px 18px;
    font-size: 14px;
  }

  .promtel-checklist-download .checklist-download-submit-wrap {
    margin-top: 22px;
  }
}

