.af-form {
    max-width: 750px;
    padding: 30px;
    border-radius: 16px;
    background: radial-gradient(94.79997781055154% 94.79999776367805% at 6.367042537459778% 5.199996515206351%, rgb(25, 22, 36) 30%, rgb(10, 9, 13) 100%);
    color: #fff;
    margin: 40px auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid #ffffff1a;
}

.af-form .af-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Each field takes one cell */
.af-form .af-field {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Full-width fields */
.af-form .af-field textarea,
.af-form .af-field select,
.af-form button,
.af-form .af-form-response {
    grid-column: span 2;
}

/* Labels */
.af-form label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
}

/* Inputs */
.af-form input,
.af-form textarea,
.af-form select {
    width: 90%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    outline: none;
}

.af-form input::placeholder,
.af-form textarea::placeholder {
    color: #bbb;
}

.af-form textarea {
    min-height: 100px;
    resize: none;
}

.af-field-radio {
  display: flex;
  flex-direction: column; /* stack options vertically */
  gap: 10px;
  margin-top: 5px;
}

.af-field-radio .af-radio {
  /*display: inline-flex;*/
  align-items: center;
  gap: 8px; /* spacing between circle and text */
  font-size: 15px;
  font-weight: normal;
  cursor: pointer;
  white-space: nowrap; /* prevent breaking into 2 lines */
  width: 10%;
}

.af-field-radio input[type="radio"] {
  margin: 0;
  accent-color: #0073e6; /* custom color */
  cursor: pointer;
}

/* Button */
.af-form button {
    margin-top: 10px;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(135deg, #1a1a1a 0%, #010101 100%);
    color: #fff;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    box-shadow: 0 0 0 1px rgb(59 130 246 / 0.5), 0 0 20px rgb(59 130 246 / 0.3),
    inset 0 1px 0 rgb(255 255 255 / 0.1) !important;
}

.af-checkbox input{
    width: 10%;
}


/* Response */
.af-form-response {
    font-size: 14px;
    text-align: center;
    margin-top: 15px;
}
.af-form-response .success { color: #00ff90; }
.af-form-response .error { color: #ff5f5f; }

/* Mobile */
@media (max-width: 768px) {
    .af-form .af-fields {
        grid-template-columns: 1fr;
    }
    .af-form .af-field textarea,
    .af-form .af-field select,
    .af-form button,
    .af-form .af-form-response {
        grid-column: span 1;
    }
}
