/* ================= CREDENTIALING PAGE STYLES ================= */

/* ============================================
   CREDENTIALING HERO SECTION
   ============================================ */
.credential-hero {
  padding: 50px 0;
  color: #ffffff;
}

.credential-hero-grid {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 40px;
  align-items: center;
}

.credential-hero-content h1 {
  color: #ffffff;
  font-size: 38px;
  line-height: 1.3;
  margin-bottom: 18px;
  font-weight: 700;
}

.credential-hero-content p {
  color: #ffffff;
  opacity: 0.9;
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.7;
}

/* ============================================
   CREDENTIALING HERO FORM
   ============================================ */
.credential-hero-form-box {
  background: #ffffff;
  padding: 22px 24px;
  border-radius: 10px;
  color: #1c1c2b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.credential-hero-form-box h3 {
  margin-bottom: 14px;
  font-size: 19px;
  font-weight: 600;
  text-align: center;
  color: #101f4b;
}

.credential-hero-form-box form {
  display: flex;
  flex-direction: column;
}

.credential-form-row {
  margin-bottom: 10px;
  width: 100%;
}

.credential-form-row-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.credential-hero-form-box input,
.credential-hero-form-box select,
.credential-hero-form-box textarea {
  width: 100%;
  padding: 9px 13px;
  margin-bottom: 0;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font-family: inherit;
  font-size: 13.5px;
  background-color: #ffffff;
  color: #1c1c2b;
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.credential-hero-form-box select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%2364748b' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  cursor: pointer;
}

.credential-hero-form-box select:invalid {
  color: #000000;
}

.credential-hero-form-box textarea {
  resize: vertical;
  min-height: 60px;
}

.credential-hero-form-box input:focus,
.credential-hero-form-box select:focus,
.credential-hero-form-box textarea:focus {
  outline: none;
  border-color: #2952e3;
  box-shadow: 0 0 0 3px rgba(16, 31, 75, 0.08);
}

.credential-hero-form-box .credential-btn-full-width {
  width: 100%;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 5px;
  margin-top: 4px;
  cursor: pointer;
}

/* Form Alerts */
.credential-form-alert {
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.credential-form-alert.credential-success {
  background: #d1fae5;
  color: #065f46;
}

.credential-form-alert.credential-error {
  background: #fee2e2;
  color: #991b1b;
}

/* ============================================
   CREDENTIALING SPLIT SECTION
   ============================================ */
.credential-split-section {
  padding: 80px 0;
}

.credential-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.credential-split-grid img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(16, 31, 75, 0.08);
  width: 100%;
  height: auto;
}

.credential-split-grid h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #1c1c2b;
  font-weight: 700;
  line-height: 1.3;
}

.credential-split-grid h2 span {
  color: #2952e3;
}

.credential-split-grid p {
  color: #6b7280;
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================
   CREDENTIALING ORGANIZATIONS GRID (11 Cards)
   ============================================ */
.credential-org-section {
  padding: 80px 0;
  background: #f8fbff;
}

.credential-org-header {
  text-align: center;
}

.credential-org-header h2 {
  color: #101f4b;
  font-size: 28px;
  margin-bottom: 10px;
}

.credential-org-header h3 {
  color: #1c1c2b;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 50px;
}

.credential-org-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.credential-org-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 30px 25px;
  text-align: left;
  width: calc(33.333% - 20px);
  min-width: 300px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.credential-org-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: #4fa3e3;
}

.credential-org-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #1c1c2b;
  font-weight: 600;
}

.credential-org-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   CREDENTIALING PACKAGES GRID (3 Cards)
   ============================================ */
.credential-packages-section {
  padding: 80px 0;
  background: #fafafa;
}

.credential-packages-header {
  text-align: center;
  margin-bottom: 50px;
}

.credential-packages-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1c1c2b;
}

.credential-packages-header h2 span {
  color: #2952e3;
}

.credential-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.credential-package-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.credential-package-card:hover {
  transform: translateY(-5px);
  border-color: #101f4b;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.credential-package-card h3 {
  font-size: 22px;
  color: #101f4b;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 15px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
}

/* Package Lists */
.credential-package-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.credential-package-list > li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 14.5px;
  color: #1c1c2b;
  font-weight: 500;
}

.credential-package-list > li::before {
  content: "•";
  color: #2952e3;
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
}

/* Sub-list inside Packages */
.credential-sub-list {
  list-style: none;
  margin-top: 10px;
  margin-left: 10px;
  padding-left: 15px;
  border-left: 1px dashed #cbd5e1;
}

.credential-sub-list li {
  position: relative;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: #6b7280;
  font-weight: 400;
}

.credential-sub-list li::before {
  content: "-";
  color: #6b7280;
  position: absolute;
  left: -15px;
}

/* ============================================
   CREDENTIALING BOTTOM CTA
   ============================================ */
.credential-bottom-cta {
  background: linear-gradient(rgba(16, 31, 75, 0.95), rgba(16, 31, 75, 0.95)), 
              url('../images/hero.png') center/cover no-repeat;
  color: #ffffff;
  padding: 90px 0;
  text-align: center;
}

.credential-bottom-cta h2 {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ffffff;
}

.credential-bottom-cta p {
  color: #cfd8f5;
  max-width: 900px;
  margin: 0 auto 30px;
  font-size: 15px;
  line-height: 1.8;
}

/* ============================================
   BUTTONS
   ============================================ */
.credential-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
  font-family: inherit;
  font-size: 14px;
  text-decoration: none;
}

.credential-btn-primary {
  background: #2952e3;
  color: #ffffff;
}

.credential-btn-primary:hover {
  background: #4fa3e3;
  color: #ffffff;
}

/* ============================================
   CONTAINER
   ============================================ */
.credential-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   TEXT UTILITIES
   ============================================ */
.credential-text-center {
  text-align: center;
}

/* ============================================
   SPINNER ANIMATION
   ============================================ */
.credential-btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: credential-spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes credential-spin {
  to { transform: rotate(360deg); }
}

.credential-btn:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablets */
@media (max-width: 991px) {
  .credential-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .credential-split-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .credential-org-card {
    width: calc(50% - 20px);
  }

  .credential-packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .credential-hero {
    padding: 40px 0;
  }

  .credential-hero-content h1 {
    font-size: 32px;
  }

  .credential-split-section {
    padding: 60px 0;
  }

  .credential-org-section {
    padding: 60px 0;
  }

  .credential-packages-section {
    padding: 60px 0;
  }

  .credential-bottom-cta {
    padding: 70px 0;
  }

  .credential-bottom-cta h2 {
    font-size: 30px;
  }

  .credential-packages-header h2 {
    font-size: 28px;
  }
}

/* Mobile Phones */
@media (max-width: 768px) {
  .credential-hero {
    padding: 35px 0;
  }

  .credential-hero-form-box {
    padding: 18px 15px;
  }

  .credential-hero-form-box .credential-form-row-two-col {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .credential-hero-content h1 {
    font-size: 28px;
  }

  .credential-hero-content p {
    font-size: 14px;
  }

  .credential-split-grid h2 {
    font-size: 24px;
  }

  .credential-split-grid p {
    font-size: 14px;
  }

  .credential-split-section {
    padding: 50px 0;
  }

  .credential-org-card {
    width: 100%;
  }

  .credential-org-header h2 {
    font-size: 24px;
  }

  .credential-org-header h3 {
    font-size: 18px;
  }

  .credential-packages-grid {
    grid-template-columns: 1fr;
  }

  .credential-package-card {
    padding: 30px 20px;
  }

  .credential-packages-header h2 {
    font-size: 24px;
  }

  .credential-bottom-cta {
    padding: 50px 0;
  }

  .credential-bottom-cta h2 {
    font-size: 26px;
  }

  .credential-bottom-cta p {
    font-size: 14px;
    padding: 0 15px;
  }

  .credential-btn {
    padding: 12px 28px;
    font-size: 13px;
  }

  .credential-container {
    padding: 0 15px;
  }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
  .credential-hero {
    padding: 30px 0;
  }

  .credential-hero-content h1 {
    font-size: 24px;
  }

  .credential-hero-form-box h3 {
    font-size: 17px;
  }

  .credential-hero-form-box input,
  .credential-hero-form-box select,
  .credential-hero-form-box textarea {
    font-size: 13px;
    padding: 8px 11px;
  }

  .credential-split-grid h2 {
    font-size: 22px;
  }

  .credential-org-header h2 {
    font-size: 22px;
  }

  .credential-org-header h3 {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .credential-org-card {
    padding: 22px 18px;
  }

  .credential-org-card h4 {
    font-size: 16px;
  }

  .credential-org-card p {
    font-size: 13px;
  }

  .credential-packages-header h2 {
    font-size: 22px;
  }

  .credential-package-card h3 {
    font-size: 20px;
  }

  .credential-package-list > li {
    font-size: 13.5px;
  }

  .credential-sub-list li {
    font-size: 13px;
  }

  .credential-bottom-cta h2 {
    font-size: 22px;
  }

  .credential-bottom-cta {
    padding: 40px 0;
  }

  .credential-container {
    padding: 0 12px;
  }

  .credential-btn {
    padding: 10px 24px;
    font-size: 13px;
    width: 100%;
  }

  .credential-org-section {
    padding: 40px 0;
  }

  .credential-packages-section {
    padding: 40px 0;
  }
}