/* ==========================================================================
   Join Us — contact page style
   ========================================================================== */

/* --- Hero banner ------------------------------------------------------ */

.register-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  overflow: hidden;
}

.register-hero__media {
  position: absolute;
  inset: 0;
}

.register-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.register-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 12, 8, 0.42) 0%,
    rgba(20, 12, 8, 0.22) 45%,
    rgba(20, 12, 8, 0.42) 100%
  );
}

.register-hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.register-hero__title {
  margin: 0;
  color: #fff;
  font-family: var(--heading-font-family, "Playfair Display", serif);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.1;
  letter-spacing: 1px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

/* --- Form section ----------------------------------------------------- */

.register-section {
  padding: 70px 0 100px;
  background: #fff;
}

.register__inner {
  max-width: 600px;
  margin: 0 auto;
}

.register__eyebrow {
  margin: 0 0 28px;
  color: #1a1512;
  font-family: var(--body-font-family, Roboto, sans-serif);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* --- Fields ----------------------------------------------------------- */

.register__field {
  margin-bottom: 14px;
}

.register-section .register__field .form-control {
  display: block;
  width: 100%;
  padding: 20px 22px;
  background: #fff;
  color: #1a1512;
  border: 1px solid #1a1512;
  border-radius: 0;
  font-family: var(--body-font-family, Roboto, sans-serif);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.register-section .register__field .form-control::placeholder {
  color: #8a8078;
}

.register-section .register__field .form-control:focus {
  outline: none;
  border-color: #1a1512;
  box-shadow: 0 0 0 1px #1a1512;
}

.register-section .register__field textarea.form-control {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* Autofill background-ஐ சரி பண்ணுது */
.register-section .register__field .form-control:-webkit-autofill,
.register-section .register__field .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #1a1512;
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

/* --- Validation ------------------------------------------------------- */

.register-section .register__field .form-control.is-invalid {
  border-color: #c0483c;
}

.register-section .register__field .form-control.is-invalid:focus {
  box-shadow: 0 0 0 1px #c0483c;
}

.register__error {
  display: none;
  margin-top: 7px;
  color: #c0483c;
  font-size: 12.5px;
}

.register__error.show { display: block; }

/* --- Alert ------------------------------------------------------------ */

.register__alert {
  padding: 15px 20px;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.55;
  border-left: 3px solid;
}

.register__alert.is-error {
  background: #fbf0ee;
  border-left-color: #c0483c;
  color: #96382e;
}

.register__alert.is-success {
  background: #f0f6f1;
  border-left-color: #4a7c59;
  color: #35603f;
}

/* --- Submit button ---------------------------------------------------- */

.register-section #submitBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 24px 28px;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  border-radius: 0;
  font-family: var(--body-font-family, Roboto, sans-serif);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.register-section #submitBtn:hover {
  background: #2e2c2b;
  border-color: #2e2c2b;
}

.register-section #submitBtn .btn-arrow {
  display: inline-flex;
  width: 15px;
  transition: transform 0.3s ease;
}

.register-section #submitBtn .btn-arrow svg {
  width: 100%;
  height: auto;
}

.register-section #submitBtn:hover .btn-arrow {
  transform: translateX(5px);
}

.register-section #submitBtn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Responsive ------------------------------------------------------- */

@media (max-width: 991px) {
  .register-hero    { min-height: 300px; }
  .register-section { padding: 55px 0 70px; }
}

@media (max-width: 767px) {
  .register-hero    { min-height: 240px; }
  .register-section { padding: 40px 0 55px; }

  .register__eyebrow { font-size: 15px; margin-bottom: 22px; }

  .register-section .register__field .form-control {
    padding: 17px 18px;
    font-size: 16px;   /* iOS zoom-ஐ தடுக்குது */
  }

  .register-section #submitBtn {
    padding: 19px 24px;
    font-size: 15px;
  }
}
