/* Start custom CSS for section, class: .elementor-element-9747636 *//* ===== Fellowship Detail Page – Center-Aligned Version ===== */

.container-gen {
  padding: clamp(16px, 3vw, 32px);
  text-align: center;
}

.slider.slider-content {
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 50%);
  border-radius: 16px;
  padding: 40px 20px;
}

.slider.slider-content .container {
  max-width: 900px;
  margin: 0 auto;
}

.slider.slider-content .row {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Typography */
.slider.slider-content h3 {
  margin: 0 0 0.5rem;
  line-height: 1.3;
  font-weight: 700;
  color: #2F4169;
  text-align: center;
  font-size: 28px;
}

.slider.slider-content h4 {
  margin: 0.25rem 0 1rem;
  color: #2F4169;
  font-weight: 600;
  text-align: center;
}

.slider.slider-content p {
  margin: 0.75rem 0;
  color: #333;
  font-size: 1rem;
  text-align: center;
}

/* Back link styled as a centered button */
.slider.slider-content a[href*="vitreoretinal-fellowships"] {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #2F4169;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.slider.slider-content a[href*="vitreoretinal-fellowships"]:hover {
  background: #243457;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
}

/* Contact Form card */
.slider.slider-content .col-md-5 {
  width: 100%;
  max-width: 480px;
  margin-top: 24px;
}

.slider.slider-content .wpcf7 form,
.slider.slider-content .wpcf7-form {
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  text-align: center;
  width: 100%;
}

.wpcf7-form p {
  margin-bottom: 12px;
  text-align: center;
}

/* Input fields */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  border: 1px solid #d8dbe2;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
  text-align: center;
}

.wpcf7-form textarea {
  min-height: 140px;
  resize: vertical;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  border-color: #2F4169;
  box-shadow: 0 0 0 3px rgba(47,65,105,.15);
}

/* Submit button */
.wpcf7-form input[type="submit"] {
  appearance: none;
  border: none;
  background: #2F4169;
  color: #fff;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.wpcf7-form input[type="submit"]:hover {
  background: #243457;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

/* Centered success + validation messages */
.wpcf7 form .wpcf7-response-output,
.wpcf7-not-valid-tip {
  text-align: center;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .slider.slider-content h3 { font-size: 1.35rem; }
  .slider.slider-content h4 { font-size: 1rem; }
  .wpcf7-form input[type="submit"] { width: 100%; }
}/* End custom CSS */