/* ==========================================================================
   Regional Professional Identity Program Stylesheet
   ========================================================================== */

.regional-identity-page {
  background: var(--white);
}

.text-accent-green {
  color: var(--accent) !important;
}

.intro-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* --- Features Grid --- */
.feature-list-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-list-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.feature-list-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--primary-700);
  border-bottom: 2px solid var(--border-soft);
  padding-bottom: 0.5rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.feature-list li i {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 0.15rem;
}

/* --- Pathway Cards --- */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pathway-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.pathway-card:hover {
  background: var(--white);
  border-color: var(--primary-light);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.pathway-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pathway-card-header .icon-wrap {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-sm);
  background: rgba(91, 43, 224, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
}

.pathway-card h4 {
  font-size: 1.1rem;
  margin: 0;
}

.pathway-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pathway-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.pathway-list li i {
  color: var(--primary-light);
  font-size: 0.8rem;
}

/* --- Process Timeline Flow --- */
.process-flow {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-block: 1rem;
}

.process-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  width: 175px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  z-index: 2;
}

.process-step:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.process-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.process-step .step-text {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.4;
}

.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 1.25rem;
}

.process-arrow i {
  display: inline-block;
}

/* --- Button Group Section --- */
.cta-buttons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
  font-size: 1rem;
  border: none;
}

.btn-premium-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-premium-primary:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
}

.btn-premium-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-premium-accent:hover {
  background: var(--accent-600);
  transform: translateY(-2px);
}

.btn-premium-outline {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-premium-outline:hover {
  background: rgba(91, 43, 224, 0.05);
  transform: translateY(-2px);
}

/* --- Forms section --- */
.forms-wrapper {
  background: var(--bg-soft);
  padding-block: var(--section-pad);
  border-top: 1px solid var(--border-soft);
}

.form-toggle-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.toggle-btn {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 0.75rem 2rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.toggle-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.identity-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.identity-form-card h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
  text-align: center;
}

.identity-form-card .form-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-section-divider {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  border-bottom: 2px solid var(--border-soft);
  padding-bottom: 0.4rem;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-col-full {
  grid-column: span 2;
}

.form-group-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group-item label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.form-group-item label span {
  color: inherit;
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap i {
  position: absolute;
  left: 1rem;
  color: var(--text-light);
  font-size: 1rem;
}

[dir="rtl"] .input-icon-wrap i {
  left: auto;
  right: 1rem;
}

.input-icon-wrap input,
.input-icon-wrap select {
  padding-left: 2.5rem;
}

[dir="rtl"] .input-icon-wrap input,
[dir="rtl"] .input-icon-wrap select {
  padding-left: 1rem;
  padding-right: 2.5rem;
}

.form-control-custom {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: all 0.3s ease;
  width: 100%;
}

.form-control-custom:focus {
  background: var(--white);
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
  outline: none;
}

.form-control-custom.is-invalid {
  border-color: #dc3545;
  background-color: #fff8f8;
}

.form-control-custom.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.invalid-feedback-custom {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* --- Custom Checkbox Grid --- */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.custom-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: var(--primary);
  margin-top: 0.25rem;
  cursor: pointer;
}

.custom-checkbox-wrap span {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- Radio Options Group --- */
.radio-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.custom-radio-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.custom-radio-wrap input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.custom-radio-wrap span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- File Upload Area --- */
.file-upload-dropzone {
  border: 2px dashed var(--border);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.file-upload-dropzone:hover {
  border-color: var(--primary-light);
  background: var(--white);
}

.file-upload-dropzone i {
  font-size: 2rem;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
  display: block;
}

.file-upload-dropzone p {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.file-upload-dropzone span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.file-upload-dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* --- Success Alert Banner --- */
.alert-success-banner {
  background: #e6f7ec;
  border: 1px solid #c2eecf;
  color: #155724;
  border-radius: var(--radius);
  padding: 1.25rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  animation: slideInDown 0.4s ease;
}

.alert-success-banner i {
  font-size: 1.5rem;
}

.alert-success-banner h4 {
  color: #155724;
  margin: 0 0 0.25rem;
}

.alert-success-banner p {
  margin: 0;
  color: #1e7034;
  font-size: 0.9rem;
}

@keyframes slideInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- Submit Button --- */
.submit-btn-wrap {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.submit-btn-premium {
  background: var(--primary);
  color: var(--white);
  border: none;
  font-weight: 700;
  padding: 1rem 3rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.submit-btn-premium:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-col-full {
    grid-column: span 1;
  }

  .identity-form-card {
    padding: 1.5rem;
  }

  .process-arrow {
    transform: rotate(90deg);
    justify-content: center;
    padding: 0;
    margin-block: 0.5rem;
  }

  .process-flow {
    flex-direction: column;
    align-items: center;
  }

  .process-step {
    width: 250px;
  }

  .btn-premium {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }

  .submit-btn-premium {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  .toggle-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
  }

  .form-toggle-bar {
    flex-direction: column;
    gap: 0.5rem;
  }
}
