  @import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

  :root {
    --bg: #020617;
    --card: #0F172A;
    --text: #f2f6f4;
    --muted: #8fa0b3;
    --accent: #14a035;
    --accent2: #37c861;
    --select-bg: #0F172A;
    --select-text: #f2f6f4;
    --border-subtle: rgba(151, 175, 201, 0.4);
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI",
      sans-serif;
  }

  [data-theme="light"] {
    --bg: #f3f6fa;
    --card: #ffffff;
    --text: #101f2a;
    --muted: #6c7c8b;
    --accent: #14a035;
    --accent2: #2fb952;
    --select-bg: #ffffff;
    --select-text: #101f2a;
    --border-subtle: rgba(15, 23, 42, 0.12);
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    margin: 0;
    display: flex;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
  }

  .content {
    flex: 1;
    padding: 28px 32px;
    display: flex;
    justify-content: center;
  }

  .content-inner {
    width: 100%;
    max-width: 1100px;
  }

  /* Professional Header Styles - Grid Layout */
  .header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 30px;
    padding-top: 10px;
    gap: 20px;
  }

  .header-left {
    justify-self: start;
    display: flex;
    align-items: center;
  }

  .header-center {
    justify-self: center;
    text-align: center;
  }

  .header-right {
    justify-self: end;
    display: flex;
    align-items: center;
  }

  /* Responsive Header for Mobile */
  @media (max-width: 768px) {
    .header-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto;
      grid-template-areas:
        "left right"
        "center center";
      gap: 16px;
      align-items: center;
      padding-bottom: 10px;
    }

    .header-left {
      grid-area: left;
      justify-self: start;
    }

    .header-center {
      grid-area: center;
      justify-self: center;
      text-align: center;
      margin-top: 5px;
    }

    .header-right {
      grid-area: right;
      justify-self: end;
      display: flex;
      align-items: center;
    }

    /* Ensure logos scale properly on mobile */
    .logo-img {
      max-height: 40px;
      max-width: 120px;
    }

    .page-title {
      font-size: 24px;
    }

    .page-subtitle {
      font-size: 14px;
    }
  }

  .logo-list {
    display: flex;
    align-items: center;
    gap: 20px;
    height:60px;
  }

  .logo-img {
    height: 100%;
    width: auto;
    max-width: 180px;
    object-fit: contain;
  }

  .logo-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-subtle);
  }

  .page-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    color: var(--text);
  }

  .page-subtitle {
    font-size: 16px;
    color: var(--muted);
    font-weight: 400;
    margin: 0;
  }

  .theme-toggle {
    position: relative;
    width: 80px;
    height: 32px;
    border-radius: 999px;
    background: rgba(7, 12, 18, 0.85);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(151, 175, 201, 0.35);
  }

  [data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
  }

  .theme-toggle-thumb {
    position: absolute;
    top: 3px;
    bottom: 3px;
    width: 50%;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent), var(--accent2));
    transition: transform 0.26s ease;
  }

  [data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(-15%);
  }

  [data-theme="light"] .theme-toggle-thumb {
    transform: translateX(76%);
  }

  .theme-toggle-icon {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
    font-size: 18px;
    transition: opacity 0.18s ease, transform 0.18s ease, color 0.2s ease;
  }

  .theme-toggle-icon.sun {
    color: #f8d34a;
  }

  .theme-toggle-icon.moon {
    color: #c7d2fe;
  }

  [data-theme="dark"] .theme-toggle-icon.sun {
    opacity: 0.45;
    transform: translateY(1px);
  }

  [data-theme="dark"] .theme-toggle-icon.moon {
    opacity: 1;
  }

  [data-theme="light"] .theme-toggle-icon.sun {
    opacity: 1;
  }

  [data-theme="light"] .theme-toggle-icon.moon {
    opacity: 0.45;
    transform: translateY(1px);
  }

  .card {
    position: relative;
    background: var(--card);
    padding: 24px 22px 22px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    /* box-shadow: 0 18px 45px rgba(8, 11, 13, 0.6); */
    overflow: hidden;
  }

  form {
    display: grid;
    gap: 16px;
    margin-top: 8px;
  }

  .form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 25px;
    font-weight: 600;
    color: var(--text);
    margin-top: 20px;
    margin-bottom: 8px;
  }

  .form-section-header:first-of-type {
    margin-top: 0;
  }

  .section-icon {
    width: 30px;
    height: 30px;
    color: var(--accent);
    flex-shrink: 0;
  }

  label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 15px;
  }

  input,
  select,
  textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background-color: transparent;
    color: var(--select-text);
    font: inherit;
    font-size: 15px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease,
      background-color 0.18s ease;
  }

  input:focus,
  select:focus,
  textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(20, 160, 53, 0.45);
  }

  textarea {
    min-height: 150px;
    resize: vertical;
  }

  input:-webkit-autofill,
  select:-webkit-autofill,
  textarea:-webkit-autofill {
    box-shadow: 0 0 0px 1000px transparent inset !important;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    -webkit-text-fill-color: var(--select-text);
    transition: background-color 9999s ease-in-out 0s;
  }

  .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
  }

  @media (min-width: 1024px) {
    .row-4 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }

  .phone-input {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .phone-input input {
    flex: 1;
    min-width: 0;
  }

  .phone-prefix {
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
  }

  [data-theme="light"] .phone-prefix {
    background-color: rgba(15, 23, 42, 0.05);
    color: #101f2a;
  }

  .btn-primary {
    background: linear-gradient(120deg, var(--accent), var(--accent2));
    padding: 13px 24px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    color: #fff;
    font-size: 15px;
    justify-self: flex-end;
    min-width: 170px;
    transition: transform 0.1s ease;
  }

  .btn-primary:hover {
    transform: translateY(-1px);
  }

  .btn-primary:active {
    transform: translateY(0);
  }

  .whatsapp-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    justify-content: flex-end;
    font-size: 14px;
    color: var(--muted);
  }

  .whatsapp-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(20, 160, 53, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    transition: border-color 0.18s ease, transform 0.1s ease;
  }

  .whatsapp-link:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
  }

  .whatsapp-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .whatsapp-icon--file {
    width: 26px;
    height: 26px;
    background-color: var(--accent);
    -webkit-mask: url("whatsapp-svgrepo-com.svg") no-repeat center / contain;
    mask: url("whatsapp-svgrepo-com.svg") no-repeat center / contain;
  }

  .preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
  }

  .preview-item {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(151, 175, 201, 0.35);
  }

  .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .remove-thumb-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239, 68, 68, 0.95);
    border: none;
    color: #fff;
    padding: 5px 8px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
  }

  .input-error {
    border-color: rgba(239, 68, 68, 0.7) !important;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.45) !important;
  }

  .loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 20, 26, 0.78);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2;
  }

  [data-theme="light"] .loading-overlay {
    background: rgba(243, 246, 250, 0.82);
  }

  .loading-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
  }

  .loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    border-radius: 16px;
    background: rgba(22, 35, 48, 0.85);
    color: var(--text);
    text-align: center;
  }

  [data-theme="light"] .loading-content {
    background: rgba(255, 255, 255, 0.9);
    color: #101f2a;
  }

  .loading-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--accent);
    animation: spin 0.9s linear infinite;
  }

  [data-theme="light"] .loading-spinner {
    border: 3px solid rgba(16, 31, 42, 0.15);
    border-top-color: var(--accent);
  }

  .loading-text {
    font-size: 15px;
    font-weight: 600;
  }

  .status-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
  }

  .status-icon svg {
    width: 28px;
    height: 28px;
  }

  .loading-overlay.is-loading .loading-spinner {
    display: block;
  }

  .loading-overlay:not(.is-loading) .loading-spinner {
    display: none;
  }

  .loading-overlay.is-success .status-icon.success-icon,
  .loading-overlay.is-error .status-icon.error-icon {
    display: inline-flex;
  }

  .success-icon {
    background: rgba(20, 160, 53, 0.14);
    border: 1px solid rgba(20, 160, 53, 0.55);
    color: #9ee7b3;
  }

  [data-theme="light"] .success-icon {
    color: #0f5b24;
    background: rgba(20, 160, 53, 0.12);
    border-color: rgba(20, 160, 53, 0.35);
  }

  .error-icon {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.55);
    color: #fecdd3;
  }

  [data-theme="light"] .error-icon {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.45);
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  .file-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px dashed rgba(151, 175, 201, 0.5);
    background-color: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
  }

  [data-theme="light"] .file-upload {
    background-color: rgba(15, 23, 42, 0.04);
  }

  .file-upload:hover,
  .file-upload:focus-within {
    border-color: var(--accent);
    background-color: rgba(20, 160, 53, 0.08);
  }

  .file-upload-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(120deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d1a11;
    flex-shrink: 0;
  }

  .file-upload-icon svg {
    width: 28px;
    height: 28px;
  }

  .file-upload-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .file-upload-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
  }

  .file-upload-hint {
    font-size: 13px;
    color: var(--muted);
  }

  .file-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
  }

  .recaptcha-wrapper {
    display: flex;
    justify-content: flex-end;
  }

  .recaptcha-widget {
    transform: scale(0.96);
    transform-origin: left;
  }

  @media (max-width: 900px) {
    body {
      display: block;
    }

    .content {
      padding: 18px 16px 24px;
    }

    .card {
      /* box-shadow: 0 14px 32px rgba(8, 11, 13, 0.55); */
    }
  }

  @media (max-width: 768px) {
      .logo-list{
          height: 70px;
      }
    .content {
      padding: 16px 14px 22px;
    }

    .header-bar {
      flex-direction: column;
      align-items: flex-start;
    }

    .title {
      font-size: 24px;
    }

    .subtitle {
      font-size: 14px;
    }

    .row {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .card {
      padding: 18px 16px 18px;
      border-radius: 12px;
    }

    .preview-item {
      width: 82px;
      height: 82px;
    }

    .btn-primary {
      width: 100%;
      justify-self: stretch;
      text-align: center;
      min-width: 0;
    }

    .whatsapp-contact {
      justify-content: flex-start;
    }

    .form-section-header {
      font-size: 22px;
      margin-top: 18px;
      margin-bottom: 8px;
    }

    .section-icon {
      width: 28px;
      height: 28px;
    }
  }

  @media (max-width: 520px) {
      .logo-list{
          height: 70px;
      }
    body {
      font-size: 15px;
      line-height: 1.5;
    }

    .content {
      padding: 12px 10px 16px;
    }

    .header-bar {
      gap: 10px;
      margin-bottom: 10px;
    }

    .header-left {
      align-items: flex-start;
      gap: 10px;
    }

    .logo-inline {
      width: 96px;
    }

    .title {
      font-size: 22px;
    }

    .subtitle {
      font-size: 13px;
    }

    .card {
      padding: 14px 12px;
      border-radius: 12px;
    }

    .row {
      grid-template-columns: 1fr;
      gap: 10px;
    }

    form {
      gap: 12px;
    }

    label {
      gap: 4px;
      font-size: 14px;
    }

    input,
    select,
    textarea {
      font-size: 15px;
      padding: 11px 12px;
    }

    textarea {
      min-height: 120px;
    }

    .btn-primary {
      font-size: 14px;
      padding: 12px 16px;
    }

    .whatsapp-contact {
      font-size: 13px;
    }

    .preview-container {
      gap: 8px;
    }

    .phone-input {
      gap: 6px;
    }

    .phone-prefix {
      padding: 10px 12px;
    }

    .file-upload {
      padding: 12px 12px;
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }

    .file-upload-icon {
      width: 48px;
      height: 48px;
    }

    .recaptcha-wrapper {
      justify-content: flex-start;
    }

    .recaptcha-widget {
      transform: scale(0.86);
    }

    .theme-toggle {
      width: 72px;
      height: 30px;
    }

    .loading-content {
      padding: 14px 16px;
    }

    .form-section-header {
      font-size: 20px;
      margin-top: 16px;
      margin-bottom: 8px;
    }

    .section-icon {
      width: 26px;
      height: 26px;
    }
  }

  @media(max-width: 375px) {

    body {
      font-size: 14px;
      line-height: 1.45;
    }

    .content {
      padding: 10px 10px 18px;
    }

    .header-bar {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 12px;
    }

    .header-left {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }

    .logo-inline {
      width: 88px;
    }

    .title {
      font-size: 20px;
      margin-bottom: 2px;
    }

    .subtitle {
      font-size: 13px;
      line-height: 1.4;
    }

    .card {
      padding: 14px 12px;
      border-radius: 12px;
      /* box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4); */
    }

    form {
      gap: 12px;
    }

    .row {
      grid-template-columns: 1fr !important;
      gap: 10px;
    }

    label {
      font-size: 14px;
      gap: 4px;
    }

    input,
    select,
    textarea {
      padding: 10px 12px;
      font-size: 14px;
    }


    textarea {
      min-height: 110px;
    }

    .phone-input {
      gap: 6px;
    }

    .phone-prefix {
      padding: 10px 12px;
      font-size: 14px;
    }

    .btn-primary {
      width: 100%;
      font-size: 14px;
      padding: 12px 16px;
      min-width: 0;
      justify-self: stretch;
      text-align: center;
    }

    .file-upload {
      padding: 12px 12px;
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }

    .file-upload-icon {
      width: 44px;
      height: 44px;
    }

    .preview-item {
      width: 70px;
      height: 70px;
    }

    .preview-container {
      gap: 8px;
    }

    .theme-toggle {
      width: 70px;
      height: 28px;
      align-self: flex-start;
    }

    .recaptcha-wrapper {
      justify-content: flex-start;
    }

    .recaptcha-widget {
      transform: scale(0.80);
    }

    .form-section-header {
      font-size: 18px;
      margin-top: 14px;
      margin-bottom: 6px;
      gap: 10px;
    }

    .section-icon {
      width: 24px;
      height: 24px;
    }

    .loading-content {
      padding: 12px 16px;
    }
  }

  body {
    overflow-x: hidden;
  }

  .card {
    overflow: visible;
  }

  @media (min-width: 320px) and (max-width: 359px) {

    input,
    textarea,
    .file-upload,
    .phone-input {
      width: 280px;
    }

    .btn-primary {
      width: 90%;
    }
  }

  .readonly-input {
    background: var(--bg-card) !important;
    cursor: not-allowed;
    opacity: 0.8;
    border-color: var(--border-subtle) !important;
  }

  .footer-copyright {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 2rem;
    padding-bottom: 1rem;
    opacity: 0.7;
  }

  .form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
  }