.elementor-37 .elementor-element.elementor-element-3958405{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-37 .elementor-element.elementor-element-332c9c1{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-37 .elementor-element.elementor-element-ec189a2{--display:flex;}.elementor-widget-gallery .elementor-gallery-item__title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );}.elementor-widget-gallery .elementor-gallery-item__description{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );}.elementor-widget-gallery{--galleries-title-color-normal:var( --e-global-color-primary );--galleries-title-color-hover:var( --e-global-color-secondary );--galleries-pointer-bg-color-hover:var( --e-global-color-accent );--gallery-title-color-active:var( --e-global-color-secondary );--galleries-pointer-bg-color-active:var( --e-global-color-accent );}.elementor-widget-gallery .elementor-gallery-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );}.elementor-37 .elementor-element.elementor-element-f338f85 .e-gallery-item:hover .elementor-gallery-item__overlay, .elementor-37 .elementor-element.elementor-element-f338f85 .e-gallery-item:focus .elementor-gallery-item__overlay{background-color:rgba(0,0,0,0.5);}.elementor-37 .elementor-element.elementor-element-f338f85{box-shadow:8px 7px 10px 0px rgba(0,0,0,0.5);--image-border-color:#770303;--image-border-width:2px;--image-border-radius:10px;--image-transition-duration:1000ms;--overlay-transition-duration:800ms;--content-text-align:center;--content-padding:20px;--content-transition-duration:800ms;--content-transition-delay:800ms;}.elementor-37 .elementor-element.elementor-element-6a40fbe{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-37 .elementor-element.elementor-element-3b17132{--display:flex;}.elementor-widget-text-editor{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-37 .elementor-element.elementor-element-f2aadf4{text-align:justify;color:#000000;}.elementor-37 .elementor-element.elementor-element-af031d0{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-37 .elementor-element.elementor-element-5d9e200{--display:flex;}.elementor-37 .elementor-element.elementor-element-296e8c4{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-37 .elementor-element.elementor-element-3270018{--display:flex;}/* Start custom CSS for html, class: .elementor-element-019578b */<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
  $to = "biharspecialolympics@gmail.com";
  $subject = "New Coach Registration - Bihar Special Olympics";

  $name = htmlspecialchars($_POST["name"]);
  $email = htmlspecialchars($_POST["email"]);
  $mobile = htmlspecialchars($_POST["mobile"]);
  $district = htmlspecialchars($_POST["district"]);
  $occupation = htmlspecialchars($_POST["occupation"]);
  $message = htmlspecialchars($_POST["message"]);

  $body = "New coach registration received:\n\n";
  $body .= "Name: $name\n";
  $body .= "Email: $email\n";
  $body .= "Mobile: $mobile\n";
  $body .= "District: $district\n";
  $body .= "Occupation: $occupation\n";
  $body .= "Message:\n$message\n";

  $headers = "From: noreply@biharspecialolympics.org\r\n";
  $headers .= "Reply-To: $email\r\n";

  if (mail($to, $subject, $body, $headers)) {
    // Send confirmation to applicant
    mail($email, "Thank You – Coach Registration", "Dear $name,\n\nThank you for registering as a coach with Bihar Special Olympics. Our team will review your application and contact you soon.\n\nWith gratitude,\nBihar Special Olympics", "From: biharspecialolympics@gmail.com");

    echo "<script>alert('Thank you! Your registration has been submitted successfully.'); window.location.href='https://biharspecialolympics.org/';</script>";
  } else {
    echo "<script>alert('Sorry, there was a problem submitting your form.'); window.history.back();</script>";
  }
}
?>/* End custom CSS */