/* Modern form field styling for Neon CRM */

/* Input fields */
input.neon2Field,
input.neoncrm-text-field,
select.neoncrm-select,
textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
}

/* Focus state */
input.neon2Field:focus,
input.neoncrm-text-field:focus,
select.neoncrm-select:focus,
textarea:focus {
    border-color: #3b82f6 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* Labels */
label.neoncrm-field-label {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #374151 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

/* Required indicator */
.neoncrm-required {
    color: #dc2626 !important;
}

/* Content wrapper spacing */
.neoncrm-content > div {
    margin-bottom: 20px !important;
}

/* Select dropdown arrow fix */
select.neoncrm-select {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 36px !important;
}

/* Page subtitle (Ticket Options header) */
h2.neoncrm-page-subtitle {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 16px !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    input.neon2Field,
    input.neoncrm-text-field,
    select.neoncrm-select,
    textarea {
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 14px !important;
    }
}
/* ============================================
   TICKET QUANTITY INPUT (small number boxes)
   ============================================ */
input.neoncrm-ticket-for-options-qty {
    width: 60px !important;
    padding: 10px 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    text-align: center !important;
    background-color: #ffffff !important;
}

input.neoncrm-ticket-for-options-qty:focus {
    border-color: #3b82f6 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* Ticket options table styling */
table.neoncrm-ticket-options-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 12px !important;
}

table.neoncrm-ticket-options-table td {
    padding: 12px 8px !important;
    vertical-align: middle !important;
}

/* ============================================
   ZIP CODE - Group the two fields visually
   ============================================ */
/* Hide the awkward dash */
span.neonFieldText {
    display: none !important;
}

/* Make zip fields inline and grouped */
input#address\.zip,
input[name="address.zip"] {
    width: 100px !important;
    display: inline-block !important;
    border-radius: 8px 0 0 8px !important;
    border-right: none !important;
}

input#address\.zipSuffix,
input[name="address.zipSuffix"] {
    width: 80px !important;
    display: inline-block !important;
    border-radius: 0 8px 8px 0 !important;
    border-left: 1px solid #e5e7eb !important;
}

/* Add a visual dash between via pseudo-element on container */
/* Since we can't add HTML, we hide the dash and rely on border connection */

/* ============================================
   REGISTRANT TICKET DROPDOWN (General Admission selector)
   ============================================ */
select#registrant\.ticket,
select[name="registrant.ticket"] {
    width: 100% !important;
    max-width: 300px !important;
    padding: 12px 36px 12px 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    background-color: #ffffff !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    cursor: pointer !important;
}

select#registrant\.ticket:focus,
select[name="registrant.ticket"]:focus {
    border-color: #3b82f6 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}
/* ============================================
   ZIP CODE - Hide suffix, restore full border
   ============================================ */
span.neonFieldText {
    display: none !important;
}

input#address\.zipSuffix,
input[name="address.zipSuffix"],
label[for="address.zipSuffix"] {
    display: none !important;
}

/* Main zip field - full border radius (no connected field) */
input#address\.zip,
input[name="address.zip"] {
    width: 150px !important;
    border-radius: 8px !important;
    border: 1px solid #d1d5db !important;  /* restore full border */
}

/* ============================================
Helper text below Ticket Options heading
  ============================================ */
div.neoncrm-event-admission::before {
  content: "Please enter the number of tickets in the Quantity field to continue.";
  display: block;
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}