  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  :root {
    --gold: #C9A84C;
    --gold-light: #F0D99A;
    --gold-dark: #8B6914;
    --deep: #0F1923;
    --deep2: #162130;
    --panel: #1A2B3C;
    --surface: #1F3347;
    --border: rgba(201, 168, 76, 0.25);
    --border-hover: rgba(201, 168, 76, 0.6);
    --text: #EAE4D4;
    --text-muted: #8A9AAA;
    --error: #E2705A;
    --success: #4CAF7D;
    --radius: 12px;
    --shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--deep);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-x: hidden;
    position: relative;
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 15% 20%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
      radial-gradient(ellipse 60% 80% at 85% 75%, rgba(15, 25, 36, 0.8) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  .bg-pattern {
    position: fixed;
    inset: 0;
    opacity: 0.04;
    background-image:
      repeating-linear-gradient(45deg, var(--gold) 0px, var(--gold) 1px, transparent 1px, transparent 40px),
      repeating-linear-gradient(-45deg, var(--gold) 0px, var(--gold) 1px, transparent 1px, transparent 40px);
    z-index: 0;
    pointer-events: none;
  }

  .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    animation: fadeUp 0.7s ease both;
  }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .header {
    background: linear-gradient(135deg, var(--surface) 0%, var(--panel) 100%);
    padding: 40px 40px 32px;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
  }

  .header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 40px;
    right: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }

  .logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
  }

  .logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .logo-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--deep);
  }

  .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.5px;
  }

  .logo-sub {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
  }

  h1 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
  }

  h1 span {
    color: var(--gold);
  }

  .subtitle {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.3px;
  }

  .body {
    padding: 36px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeUp 0.5s ease both;
  }

  .field:nth-child(1) {
    animation-delay: 0.1s;
  }

  .field:nth-child(2) {
    animation-delay: 0.15s;
  }

  .field:nth-child(3) {
    animation-delay: 0.2s;
  }

  .field:nth-child(4) {
    animation-delay: 0.25s;
  }

  .field:nth-child(5) {
    animation-delay: 0.3s;
  }

  label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  label svg {
    width: 14px;
    height: 14px;
    stroke: var(--gold);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
  }

  input[type="text"],
  input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    outline: none;
    transition: all 0.25s ease;
  }

  input[type="text"]::placeholder,
  input[type="tel"]::placeholder {
    color: rgba(138, 154, 170, 0.5);
  }

  input[type="text"]:focus,
  input[type="tel"]:focus {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.06);
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.1);
  }

  input.has-error,
  input.has-error:focus {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(226, 112, 90, 0.12);
  }

  .select-wrapper {
    position: relative;
  }

  /* Select2 overrides */
  .select2-container--default .select2-selection--single {
    background: var(--surface) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius) !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.25s ease;
  }

  .select2-container--default.select2-container--focus .select2-selection--single,
  .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--gold) !important;
    background: rgba(201, 168, 76, 0.06) !important;
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.1) !important;
    outline: none !important;
  }

  .select2-container--default.select2-container--error .select2-selection--single {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 4px rgba(226, 112, 90, 0.12) !important;
  }

  .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    padding-left: 16px !important;
    line-height: 46px !important;
  }

  .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(138, 154, 170, 0.5) !important;
  }

  .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 14px !important;
  }

  .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--gold-dark) transparent transparent transparent !important;
  }

  .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--gold) transparent !important;
  }

  .select2-dropdown {
    background: var(--panel) !important;
    border: 1px solid var(--border-hover) !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
  }

  .select2-search--dropdown .select2-search__field {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    color: var(--text) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
    outline: none !important;
    margin: 8px !important;
    width: calc(100% - 16px) !important;
  }

  .select2-results__option {
    color: var(--text-muted) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    padding: 10px 16px !important;
    transition: all 0.15s;
  }

  .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: rgba(201, 168, 76, 0.15) !important;
    color: var(--gold-light) !important;
  }

  .select2-container--default .select2-results__option[aria-selected=true] {
    background: rgba(201, 168, 76, 0.1) !important;
    color: var(--gold) !important;
  }

  /* File upload */
  .file-area {
    position: relative;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 22px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    overflow: hidden;
  }

  .file-area:hover,
  .file-area.drag-over {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.06);
  }

  .file-area.has-error {
    border-color: var(--error);
  }

  .file-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
  }

  .file-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 10px;
    background: rgba(201, 168, 76, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .file-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--gold);
    stroke-width: 1.5;
    fill: none;
  }

  .file-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
  }

  .file-label span {
    color: var(--gold);
    font-weight: 500;
  }

  .file-sublabel {
    font-size: 11px;
    color: rgba(138, 154, 170, 0.5);
    margin-top: 4px;
  }

  #photo-name {
    font-size: 12px;
    color: var(--success);
    margin-top: 8px;
    display: none;
  }

  .error-msg {
    font-size: 12px;
    color: var(--error);
    display: none;
    align-items: center;
    gap: 5px;
  }

  .error-msg.visible {
    display: flex;
  }

  .error-msg::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--error);
    border-radius: 50%;
    flex-shrink: 0;
  }

  .divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 4px 0;
  }

  .submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
    background-size: 200% 200%;
    background-position: 100% 100%;
    border: none;
    border-radius: var(--radius);
    color: var(--deep);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .submit-btn:hover {
    background-position: 0% 0%;
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(201, 168, 76, 0.3);
  }

  .submit-btn:active {
    transform: translateY(0);
    box-shadow: none;
  }

  .submit-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
  }

  .footer-note {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 20px;
    opacity: 0.6;
    letter-spacing: 0.3px;
  }

  /* Shake animation */
  @keyframes shake {

    0%,
    100% {
      transform: translateX(0);
    }

    20% {
      transform: translateX(-5px);
    }

    40% {
      transform: translateX(5px);
    }

    60% {
      transform: translateX(-4px);
    }

    80% {
      transform: translateX(4px);
    }
  }

  .shake {
    animation: shake 0.4s ease;
  }

  /* Success overlay */
  .success-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(10, 18, 26, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .success-overlay.show {
    display: flex;
  }

  .success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  }

  @keyframes pop {
    from {
      transform: scale(0);
      opacity: 0;
    }

    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  .success-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--success);
    stroke-width: 2.5;
    fill: none;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: draw 0.6s ease 0.3s forwards;
  }

  @keyframes draw {
    to {
      stroke-dashoffset: 0;
    }
  }

  .success-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--text);
  }

  .success-sub {
    font-size: 14px;
    color: var(--text-muted);
  }

  @media (max-width: 560px) {

    .header,
    .body {
      padding: 28px 24px;
    }

    h1 {
      font-size: 22px;
    }
  }

  /* select 2 css  */
  .select2-error-border {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 4px rgba(226, 112, 90, 0.12) !important;
  }