 
    .popup-overlay {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.6);
      display: none;
      justify-content: center;
      align-items: flex-start;
      z-index: 1000;
      overflow-y: auto;
      padding: 10px;
    }

    @media (min-width: 768px) {
      .popup-overlay {
        align-items: center;
        padding: 20px;
      }
    }

    .popup-content {
      background: #fff;
      padding: 20px;
      border-radius: 12px;
      width: 100%;
      max-width: 800px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      box-sizing: border-box;
      position: relative;
      max-height: 95vh;
      overflow-y: auto;
      margin-top: 10px;
    }

    @media (min-width: 768px) {
      .popup-content {
        padding: 25px;
        border-radius: 16px;
        margin-top: 0;
      }
    }

    .close-btn {
      position: absolute;
      top: 10px;
      right: 15px;
      font-size: 32px;
      cursor: pointer;
      color: #666;
      padding: 5px;
      line-height: 1;
      user-select: none;
      touch-action: manipulation;
    }

    .close-btn:hover {
      color: #000;
    }

    @media (min-width: 768px) {
      .close-btn {
        top: 15px;
        right: 20px;
        font-size: 28px;
      }
    }

    h2 {
      margin-top: 0;
      font-size: 12px;
      font-weight: 700;
      margin-bottom: 15px;
      padding-right: 40px;
    }

    @media (min-width: 768px) {
      h2 {
        font-size: 24px;
      }
    }

    .form-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 8px;
    }

    @media (min-width: 768px) {
      .form-row {
        gap: 15px;
        margin-bottom: 10px;
      }
    }

    .form-group {
      flex: 1;
      min-width: 100%;
    }

    .form-row.full-width .form-group {
      min-width: 100%;
    }

    @media (min-width: 768px) {
      .form-group {
        min-width: 47%;
      }
    }

    label {
      display: block;
      margin-bottom: 4px;
      font-weight: 600;
      margin-top: 0px;
    }

    input,
    select,
    textarea {
      width: 100%;
      padding: 12px;
      font-size: 16px;
      border-radius: 8px;
      border: 1px solid #ccc;
      box-sizing: border-box;
      font-family: inherit;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      background-color: #fff;
    }

    /* Custom select arrow for mobile */
    select {
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
      background-position: right 12px center;
      background-repeat: no-repeat;
      background-size: 16px;
      padding-right: 40px;
    }

    input:focus,
    select:focus,
    textarea:focus {
      outline: none;
      border-color: #fdd835;
      box-shadow: 0 0 0 2px rgba(253, 216, 53, 0.2);
    }

    @media (max-width: 768px) {
      input,
      select,
      textarea {
        padding: 10px 12px;
        font-size: 10px; 
      }
    }

    textarea {
      resize: vertical;
      min-height: 80px;
    }

    @media (max-width: 768px) {
      textarea {
        min-height: 100px;
      }
    }

    .error {
      border-color: red;
    }

    .error-message {
      color: red;
      font-size: 12px;
      margin-top: 2px;
      min-height: 14px;
    }

    button {
      background-color: #fdd835;
      border: none;
      color: #000;
      font-weight: 600;
      font-size: 16px;
      padding: 16px 12px;
      border-radius: 10px;
      /*width: 100%;*/
      cursor: pointer;
      /*margin-top: 20px;*/
      transition: background-color 0.2s ease;
      touch-action: manipulation;
      user-select: none;
    }

    @media (min-width: 768px) {
      button {
        padding: 12px;
        margin-top: 15px;
      }
    }

    button:hover {
      background-color: #fbc02d;
    }

    .success-message {
      text-align: center;
      padding: 30px 15px;
    }

    .success-message h3 {
      color: #000;
      font-size: 20px;
      margin-bottom: 15px;
      font-weight: 700;
    }

    .success-message p {
      color: #666;
      font-size: 15px;
      line-height: 1.5;
      margin-bottom: 25px;
    }

    .success-message .close-success {
      background-color: #fdd835;
      border: none;
      color: #000;
      font-weight: 600;
      font-size: 16px;
      padding: 14px 30px;
      border-radius: 10px;
      cursor: pointer;
      transition: background-color 0.2s ease;
      touch-action: manipulation;
      user-select: none;
    }

    @media (min-width: 768px) {
      .success-message {
        padding: 40px 20px;
      }

      .success-message h3 {
        font-size: 24px;
      }

      .success-message p {
        font-size: 16px;
        margin-bottom: 20px;
      }

      .success-message .close-success {
        padding: 12px 30px;
      }
    }

    button:disabled {
      background-color: #ccc;
      cursor: not-allowed;
    }

    .hidden {
      display: none;
    }