/* Franchise / Danışman Ol ortak başvuru formu hero düzeni */

.form-app-hero {
  position: relative;
  width: 100%;
  display: block;
  padding: 70px 0 90px;
  margin: 0;
  background-color: #432775;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  border-bottom: 4px solid #f5cf77;
}

.form-app-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(67, 39, 117, 0.62) 0%, rgba(38, 24, 70, 0.38) 48%, rgba(67, 39, 117, 0.55) 100%);
  pointer-events: none;
  z-index: 0;
}

.form-app-hero--left::before {
  background: linear-gradient(260deg, rgba(67, 39, 117, 0.62) 0%, rgba(38, 24, 70, 0.38) 48%, rgba(67, 39, 117, 0.55) 100%);
}

.form-app-page .footer-bar {
  display: none;
}

.form-app-page .footer {
  padding-top: 56px;
  margin-top: 0;
  background: #432775;
}

body.form-app-only {
  background-color: #432775;
}

body.form-app-only .form-app-hero {
  padding: 200px 0 80px;
  min-height: 0;
  box-sizing: border-box;
}

.form-app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.form-app-hero--right .form-app-shell {
  justify-content: flex-end;
}

.form-app-hero--left .form-app-shell {
  justify-content: flex-start;
}

.form-app-shell.has-side-title {
  justify-content: space-between;
}

.form-app-side {
  flex: 1 1 38%;
  max-width: 460px;
  color: #fff;
}

.form-app-hero--left .form-app-side {
  text-align: right;
}

.form-app-side-title {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.form-app-panel {
  flex: 0 1 620px;
  width: 100%;
  max-width: 620px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 36px 34px 28px;
}

.form-app-hero--right .form-app-panel {
  margin-left: auto;
}

.form-app-hero--left .form-app-panel {
  margin-right: auto;
}

.form-app-panel-header {
  text-align: center;
  margin-bottom: 22px;
}

.form-app-panel-header h3 {
  margin: 0 0 8px;
  color: #2a2150;
  font-size: 26px;
  font-weight: 700;
}

.form-app-panel-header p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.form-app-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
  margin-right: -8px;
}

.form-app-row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

.form-app-hero .contact-form {
  padding: 0;
}

.form-app-hero .contact-form #contact .form-group {
  margin-bottom: 14px;
  position: relative;
}

.form-app-hero .contact-form #contact .form-group > label.field-label {
  display: block !important;
  position: static !important;
  width: auto;
  margin: 0 0 6px;
  padding: 0 !important;
  top: auto !important;
  left: auto !important;
  line-height: 1.25 !important;
  font-size: 12px !important;
  font-weight: 600;
  color: #555;
  z-index: auto;
  pointer-events: none;
}

.form-app-hero .contact-form #contact .form-group input[type="text"],
.form-app-hero .contact-form #contact .form-group input[type="email"],
.form-app-hero .contact-form #contact .form-group input[type="date"],
.form-app-hero .contact-form #contact .form-group select,
.form-app-hero .contact-form #contact .form-group textarea,
.form-app-hero .contact-form #contact .form-group .flatpickr-input {
  width: 100%;
  height: 38px;
  border-width: 1px;
  border-style: solid;
  border-color: #d5d5d5;
  border-radius: 6px;
  background: #fff;
  position: relative;
  z-index: 1;
  padding: 0 12px;
  font-size: 13px;
}

.form-app-hero .contact-form #contact .form-group textarea {
  height: auto;
  min-height: 72px;
  padding: 10px 12px;
}

.form-app-hero .contact-form #contact .form-group input:focus,
.form-app-hero .contact-form #contact .form-group select:focus,
.form-app-hero .contact-form #contact .form-group textarea:focus,
.form-app-hero .contact-form #contact .form-group .flatpickr-input:focus {
  border-color: #432775;
  outline: none;
}

.form-app-hero .form-group .flatpickr-input {
  width: 100%;
  height: 38px;
  background: #fff;
  position: relative;
  z-index: 1;
  padding: 0 12px;
}

.form-app-hero .consent-group {
  margin-bottom: 14px;
  text-align: left;
}

.form-app-hero .consent-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #444;
  cursor: pointer;
  position: static;
  margin: 0;
}

.form-app-hero .consent-group input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.form-app-hero .consent-group a {
  color: #432775;
  text-decoration: underline;
}

.form-app-hero #submit {
  position: relative;
  min-width: 140px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: #432775;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.form-app-hero #submit:hover {
  background: #532f8f;
}

.form-app-hero #submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.form-app-hero #submit .btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -3px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: formAppBtnSpin 0.7s linear infinite;
}

@keyframes formAppBtnSpin {
  to { transform: rotate(360deg); }
}

.form-app-hero .office-select-hint {
  display: block;
  margin-top: 10px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.45;
  color: #856404;
  background: #fff8e6;
  border: 1px solid #f0d78c;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

@media (max-width: 991px) {
  .form-app-hero {
    padding: 48px 0 72px;
  }

  body.form-app-only .form-app-hero {
    padding: 160px 0 56px;
  }

  .form-app-page .footer {
    padding-top: 40px;
  }

  .form-app-shell {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .form-app-side {
    max-width: none;
    text-align: center;
  }

  .form-app-hero--left .form-app-side {
    order: -1;
    text-align: center;
  }

  .form-app-panel {
    max-width: none;
    flex-basis: auto;
    margin-left: 0;
    margin-right: 0;
    padding: 28px 20px 22px;
  }
}
