/* ==========================================================================
   Frylinks Custom Contact Forms - Visual Styling & Theme Integration
   ========================================================================== */

:root {
  --navy: #1b2a4a;
  --text: #34435f;
  --blue: #0b5ec1;
  --blue-hover: #084999;
  --dark: #14284b;
  --line: #e0eaf6;
  --bg-subtle: #f8fbfe;
  --success: #0d7a3a;
  --success-bg: #edf7f1;
  --success-border: #bce5cb;
  --error: #c5221f;
  --error-bg: #fde8e8;
  --error-border: #f8b4b4;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
}

/* Page Intro & Breadcrumb */
.form-hero {
  border-bottom: 1px solid var(--line);
  padding: 48px 24px 44px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #edf4fc 0%, #ffffff 75%);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(11, 94, 193, 0.08);
  transition: all 0.2s ease;
}

.back-link:hover {
  background: rgba(11, 94, 193, 0.16);
  transform: translateX(-2px);
}

.form-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  background: #eaf2fb;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.form-hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 16px;
  font-weight: 400;
}

.form-hero p {
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--text);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Form Container Section */
.form-section {
  padding: 56px 20px 80px;
  background: #ffffff;
}

/* ==========================================================================
   Trust & Ethical Notice Cards (Adapted from TalentPro India & Randstad benchmarks)
   ========================================================================== */
.ethical-notice-card {
  max-width: 780px;
  margin: 0 auto 32px;
  background: #f4f9fd;
  border: 1px solid #cce1f6;
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 4px 14px rgba(11, 94, 193, 0.04);
}

.notice-icon {
  width: 32px;
  height: 32px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-icon svg {
  width: 100%;
  height: 100%;
}

.notice-content h4 {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.notice-content p {
  font-size: 13px;
  line-height: 1.6;
  color: #384d6b;
  margin: 0;
}

/* Key Value Pillars for Businesses */
.business-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 780px;
  margin: 0 auto 40px;
}

.business-pillar-card {
  background: #ffffff;
  border: 1px solid #e0eaf6;
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(20, 40, 75, 0.02);
}

.business-pillar-card:hover {
  border-color: #bad6f6;
  box-shadow: 0 8px 22px rgba(20, 40, 75, 0.05);
  transform: translateY(-2px);
}

.pillar-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #edf5fe;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.pillar-text h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.pillar-text p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

@media (max-width: 720px) {
  .business-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.form-card {
  max-width: 780px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: 0 10px 30px rgba(20, 40, 75, 0.04), 0 1px 3px rgba(20, 40, 75, 0.02);
}

@media (max-width: 640px) {
  .form-card {
    padding: 28px 20px;
    border-radius: 16px;
  }
}

.form-header-inner {
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.form-header-inner h2 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-header-inner p {
  font-size: 13.5px;
  color: var(--text);
}

/* Grid Layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.form-full {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Input Group & Floating / Clean Labels */
.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label .req {
  color: var(--blue);
  margin-left: 2px;
}

.form-label .hint {
  font-size: 11px;
  font-weight: 400;
  color: #7a8fa8;
}

/* Inputs, Selects, and Textareas */
.form-input,
.form-select,
.form-textarea {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--navy);
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  width: 100%;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9cb1cb;
  font-weight: 400;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: #bacfe8;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(11, 94, 193, 0.12);
}

/* Select Arrow Dropdown */
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper select {
  cursor: pointer;
  padding-right: 38px;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2334435F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.select-wrapper:focus-within::after {
  transform: translateY(-50%) rotate(180deg);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

/* Honeypot Spam Protection */
.honey-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  tab-index: -1 !important;
}

/* Submit Button & Action Bar */
.form-actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  border: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(11, 94, 193, 0.28);
}

.btn-submit:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11, 94, 193, 0.35);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.form-privacy-note {
  font-size: 12px;
  color: #7a8fa8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-privacy-note svg {
  width: 14px;
  height: 14px;
  fill: #7a8fa8;
}

/* Spinner Icon */
.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-submit.loading .spinner {
  display: inline-block;
}

.btn-submit.loading .btn-text {
  opacity: 0.85;
}

/* Interactive In-Page Alerts */
.form-alert {
  display: none;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 13.5px;
  line-height: 1.5;
  animation: alertFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes alertFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-alert.alert-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #eaf2fb;
  border: 1px solid #b9d5f3;
  color: var(--navy);
}

.form-alert.alert-loading .alert-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(11, 94, 193, 0.25);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.form-alert.alert-success {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}

.form-alert.alert-success svg {
  width: 22px;
  height: 22px;
  fill: var(--success);
  flex-shrink: 0;
  margin-top: 1px;
}

.form-alert.alert-error {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error);
}

.form-alert.alert-error svg {
  width: 22px;
  height: 22px;
  fill: var(--error);
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-content b {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.alert-content p {
  font-size: 12.5px;
  margin: 0;
  opacity: 0.9;
}


/* Homepage Footer End & Final Banner Styles */
.end {
  background: #fff url(assets/footer.svg) center bottom/100% auto no-repeat;
}
.final {
  text-align: center;
  padding: 90px 20px 110px;
}
.final h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  max-width: 720px;
  margin: 0 auto 24px;
  line-height: 1.2;
  color: var(--navy);
}
.final p {
  font-size: 14.5px;
  margin-bottom: 30px;
  color: var(--navy);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
@media (max-width: 820px) {
  .end {
    background-size: auto 520px;
  }
  .final {
    padding: 60px 20px 80px;
  }
}

/* File Upload Input Styling */
input[type="file"].form-input {
  appearance: auto;
  -webkit-appearance: auto;
  padding: 10px 14px;
  cursor: pointer;
  background: #fbfdff;
}
input[type="file"].form-input::file-selector-button {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 6px;
  padding: 7px 14px;
  margin-right: 14px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
input[type="file"].form-input::file-selector-button:hover {
  opacity: 0.88;
}
