/**
 * BTTC Round Robin Registration - Vue.js Styles
 *
 * DEBUGGING GUIDE:
 * - Use browser DevTools to inspect elements and see applied styles
 * - Check console for [RRRegistration] prefixed logs for JavaScript debugging
 * - If styles aren't applying, check CSS file is loaded (Network tab)
 * - Use browser's element inspector to see computed styles
 * - Common issues: z-index conflicts (dialogs), overflow hidden, display none
 * - Registration status banners use .status-open/.status-closed classes
 * - Capacity banners use .capacity-full/.capacity-available/.capacity-closed classes
 *
 * @file css/rr-registration.css
 */

/* ========================================
   RESET & BASE STYLES
   ======================================== */

.registration {

  * {
      box-sizing: border-box;
    }


  .container {
    background: #fff;
    margin: 3rem auto;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: calc(100% - 2rem);
    text-align: center;
    font-family: 'PT Sans Narrow', Arial, sans-serif;
  }

  /* Consistent heading styles */
  .container h2 {
    font-family: 'PT Sans Narrow', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #212529;
    margin: 0 0 0.5rem 0;
  }

  /* Page header with description */
  .page-header {
    margin-bottom: 2rem;
    padding-bottom: 0;
  }

  .page-description {
    color: #6c757d;
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
    font-family: 'PT Sans Narrow', Arial, sans-serif;
  }

  /* Event date styling - bold and bigger */
  .event-date {
    font-family: 'PT Sans Narrow', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #212529;
    margin: 0 0 0.5rem 0;
  }

  /* De-emphasize the label text */

  /* Mobile-first responsive adjustments */
  @media (max-width: 480px) {
    .container {
      margin: 0.5rem auto;
      padding: 1rem;
      width: calc(100% - 1rem);
      border-radius: 8px;
    }

    .event-date {
      font-size: 1.25rem;
    }
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  /* Registration Form Styles - Simple & Elegant */
  .registration-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    border-top: 2px solid #dee2e6;
    border-left: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
  }

  .lookup-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
  }

  /* When collapsed, show button on right */
  .lookup-header:has(.lookup-toggle-btn) {
    text-align: left;
  }

  /* When not collapsed (no toggle button), center the title */
  .lookup-header:not(:has(.lookup-toggle-btn)) {
    justify-content: center;
    text-align: center;
  }

  .lookup-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .lookup-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin: 0.5rem 0 0.25rem 0;
    font-family: 'PT Sans Narrow', Arial, sans-serif;
  }

  .lookup-subtext {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0 0 0.5rem 0;
    font-family: 'PT Sans Narrow', Arial, sans-serif;
  }

  .lookup-subtext a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
  }

  .lookup-subtext a:hover {
    color: #0b5ed7;
    text-decoration: underline;
  }

  /* Collapsed link - minimal footprint, no container styling */
  .lookup-collapsed-link {
    text-align: center;
    margin: 0.5rem 0;
  }

  .lookup-toggle-link {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: 'PT Sans Narrow', Arial, sans-serif;
    display: inline-block;
  }

  .lookup-toggle-link:hover {
    color: #0b5ed7;
    text-decoration: underline;
  }

  /* Collapsed state for registration content - remove all styling */
  .registration-content.lookup-collapsed {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .lookup-form-container {
    /* Smooth transition when collapsing/expanding */
    transition: opacity 0.2s ease, max-height 0.3s ease;
  }

  /* Mobile adjustments for collapsed state */
  @media (max-width: 480px) {
    .lookup-header {
      flex-direction: column;
      align-items: stretch;
    }
  }


  .lookup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .input-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  .input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
  }

  .input-container:focus-within {
    border-color: #0d6efd;
  }

  .input-container.input-error {
    border-color: #dc3545;
  }

  .input-prefix {
    padding: 0 1rem;
    color: #6c757d;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    font-size: 1rem;
  }

  .phone-input {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: none;
    background: transparent;
    outline: none;
    color: #212529;
    width: 100%;
    box-sizing: border-box;
  }

  .phone-input::placeholder {
    color: #adb5bd;
  }

  .phone-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  .input-loading {
    opacity: 0.7;
  }

  .input-spinner {
    position: absolute;
    right: 1rem;
    width: 18px;
    height: 18px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0d6efd;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }

  .input-hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0.25rem 0 0 0;
  }

  .input-error-text {
    font-size: 0.875rem;
    color: #dc3545;
    margin: 0.25rem 0 0 0;
    font-weight: 500;
  }

  .lookup-button {
    padding: 0.875rem 1.5rem;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
  }

  .lookup-button:hover {
    background: #0b5ed7;
  }

  .lookup-button:active {
    background: #0a58ca;
  }

  .lookup-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  .button-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .button-icon {
    font-size: 1rem;
  }

  .button-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  /* Legacy form styles for compatibility */
  input[type="text"] {
    padding: 0.875rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }

  @media (max-width: 480px) {
    input[type="text"] {
      padding: 1rem;
      font-size: 16px;
      /* Prevents zoom on iOS */
    }
  }

  button {
    padding: 0.875rem;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
    /* iOS touch target size */
  }

  button:hover,
  button:focus {
    background-color: #0b5ed7;
    outline: none;
  }

  button:active {
    transform: translateY(1px);
    background-color: #0a58ca;
  }

  /* Mobile button improvements */
  @media (max-width: 480px) {
    button {
      padding: 1rem;
      font-size: 1.1rem;
      min-height: 48px;
    }
  }

  .entry {
    border: 2px solid #e9ecef;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.25rem;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
  }

  .entry:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .entry-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
  }

  .player-name-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
    font-family: 'PT Sans Narrow', Arial, sans-serif;
  }

  .entry-content {
    margin-top: 0.75rem;
  }

  @media (max-width: 480px) {
    .entry {
      padding: 0.75rem;
    }
  }

  .entry p {
    margin: 0.5rem 0;
    word-wrap: break-word;
    font-family: 'PT Sans Narrow', Arial, sans-serif;
  }

  /* Player status text styles */
  .player-registered-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-family: 'PT Sans Narrow', Arial, sans-serif;
  }

  .status-icon {
    font-size: 1.25rem;
    color: #198754;
  }

  .player-registered-label {
    font-weight: 600;
    color: #198754;
    font-family: 'PT Sans Narrow', Arial, sans-serif;
  }


  .register-form,
  .unregister-form {
    margin-top: 1rem;
  }

  .register-form.full-message {
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    text-align: center;
  }

  .registration-full-message {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #856404;
    font-size: 1rem;
    font-family: 'PT Sans Narrow', Arial, sans-serif;
  }

  .full-message-hint {
    margin: 0;
    font-size: 0.875rem;
    color: #856404;
    font-family: 'PT Sans Narrow', Arial, sans-serif;
  }

  .result {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #dee2e6;
    position: relative;
  }

  .result::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #adb5bd 20%, #adb5bd 80%, transparent);
    opacity: 0.4;
  }

  .result-header {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .result-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0.25rem 0 0 0;
    font-family: 'PT Sans Narrow', Arial, sans-serif;
  }

  .error {
    color: #dc3545;
    font-weight: bold;
  }

  .success {
    color: #198754;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  /* Error Section - Prominent Design */
  .error-section {
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 2px solid #dee2e6;
    position: relative;
  }

  .error-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #adb5bd 20%, #adb5bd 80%, transparent);
    opacity: 0.4;
  }

  .error-content {
    background: #ffffff;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
  }

  .error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .error-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc3545;
    margin: 0 0 0.75rem 0;
    font-family: 'PT Sans Narrow', Arial, sans-serif;
  }

  .error-subtitle {
    font-size: 1rem;
    color: #dc3545;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
  }

  .error-message {
    font-size: 1rem;
    color: #6c757d;
    margin: 0 0 2rem 0;
    line-height: 1.5;
  }

  .error-actions {
    margin: 2rem 0;
  }

  .signup-button {
    display: block;
    background: #0d6efd;
    color: #ffffff;
    border: 2px solid #0d6efd;
    border-radius: 8px;
    padding: 1.25rem 2rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
  }

  .signup-button:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
    transform: translateY(-1px);
  }

  .signup-button-text {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
  }

  .signup-button-subtext {
    display: block;
    font-size: 0.875rem;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.9);
  }

  /* Signup Section - Appears after player list */
  .signup-section {
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 2px solid #dee2e6;
    text-align: center;
    position: relative;
  }

  .signup-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #adb5bd 20%, #adb5bd 80%, transparent);
    opacity: 0.4;
  }

  .error-support {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
  }

  .support-text {
    font-size: 0.9rem;
    color: #dc3545;
    margin: 0 0 0.5rem 0;
  }

  .support-contact {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
  }

  .support-method {
    font-weight: normal;
    color: #6c757d;
  }

  .error-faq-link {
    margin-top: 1rem;
    text-align: center;
  }

  /* Mobile adjustments for error section */
  @media (max-width: 480px) {
    .error-content {
      padding: 1.5rem;
    }

    .error-icon {
      font-size: 2.5rem;
    }

    .error-title {
      font-size: 1.25rem;
    }

    .signup-button {
      padding: 1rem 1.5rem;
    }

    .signup-button-text {
      font-size: 1rem;
    }
  }

  /* Roster Section - Distinct from registration form */
  .roster-section {
    margin: 0 0 2.5rem 0;
    border-bottom: 2px solid #ced4da;
    padding-bottom: 2rem;
    position: relative;
  }

  .roster-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #adb5bd 20%, #adb5bd 80%, transparent);
    opacity: 0.5;
  }

  .roster-link-button {
    display: block;
    background: #ffffff;
    border: 2px solid #0d6efd;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: #495057;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .roster-link-button:hover {
    background-color: #f8f9fa;
  }

  .roster-text {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
  }

  .roster-subtext {
    display: block;
    font-size: 0.875rem;
    font-weight: normal;
    color: #6c757d;
  }


  .confirm-btn {
    margin-top: 0.5rem;
    width: 100%;
    font-family: 'PT Sans Narrow', Arial, sans-serif;
  }

  /* Unregister button - red/danger style */
  .confirm-btn.unregister-btn {
    background-color: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
  }

  .confirm-btn.unregister-btn:hover {
    background-color: #c82333;
    border-color: #bd2130;
  }

  @media (min-width: 481px) {
    .confirm-btn {
      width: auto;
      display: inline-block;
      vertical-align: top;
    }
  }

  .token-error {
    display: block;
    margin-top: 0.5rem;
    color: red;
    font-size: 0.9em;
  }

  /* Status Banner Styles */
  .status-banner {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  @media (max-width: 480px) {
    .status-banner {
      padding: 0.75rem;
      font-size: 0.95rem;
    }
  }

  .status-open {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
  }

  .status-closed {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
  }

  .status-details {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: normal;
  }

  /* Capacity Banner Styles */
  .capacity-banner {
    margin: 1rem 0;
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
  }

  /* Last Updated Text in Capacity Banner */
  .capacity-last-updated {
    color: #6c757d;
    font-size: 0.8em;
    font-style: italic;
    font-weight: normal;
    margin-left: 0.5rem;
  }

  .capacity-available {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
  }

  .capacity-full {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
  }

  .capacity-closed {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
  }

  .registration-full-message {
    color: #dc3545;
    font-weight: bold;
    margin: 0.5rem 0;
    font-size: 0.9rem;
  }

  /* Dialog Styles - Mobile Optimized */
  .dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
    overscroll-behavior: contain;
  }

  .dialog-box {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: auto;
  }

  @media (max-width: 480px) {
    .dialog-box {
      padding: 1rem;
      border-radius: 8px;
      margin: 0.5rem;
      width: calc(100% - 1rem);
    }
  }

  .dialog-title {
    font-size: 1.2rem;
    font-weight: bold;
    /* margin-bottom: 0.5rem; */
    text-align: center;
    color: #333;
  }

  @media (max-width: 480px) {
    .dialog-title {
      font-size: 1.1rem;
      margin-bottom: 1rem;
    }
  }

  .payment-options {
    margin-bottom: 1rem;
  }

  .payment-grid {
    display: grid;
    gap: 0.75rem;
  }

  .payment-card {
    background: #f8f9fa;
    border: 1px solid #e6e8eb;
    border-radius: 10px;
    padding: 0.9rem;
  }

  .payment-card-title {
    margin: 0 0 0.6rem 0;
    color: #333;
    font-size: 0.95rem;
    font-weight: 700;
  }

  .payment-card-warning {
    background: #fff7e6;
    border-color: #ffe0a6;
  }

  .pricing-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
  }

  .pricing-list li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.2rem 0;
  }

  .price-tag {
    display: inline-block;
    min-width: 3.2rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #e9f2ff;
    color: #0d6efd;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
  }

  .payment-note {
    margin: 0;
    font-size: 0.9rem;
    color: #5a4b1d;
    line-height: 1.5;
  }

  .payment-note strong {
    font-weight: 700;
  }

  .payment-methods-note {
    margin-top: 0.75rem;
    color: #444;
  }

  .payment-instructions {
    list-style: disc;
    padding: 0 0 0 1.2rem;
    margin: 0.2rem 0 0 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
  }

  .payment-instructions li {
    padding: 0.15rem 0;
    text-align: left;
  }

  .payment-instructions a {
    color: #0d6efd;
    text-decoration: underline;
  }

  .payment-instructions a:hover {
    color: #0a58ca;
  }

  .payment-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    min-width: 140px;
  }

  .btn-venmo {
    background: #008CFF;
    color: #ffffff;
    border-color: #008CFF;
  }

  .btn-venmo:hover {
    background: #0074D9;
    border-color: #0074D9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 140, 255, 0.3);
  }

  .btn-venmo:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 140, 255, 0.2);
  }

  @media (max-width: 480px) {
    .payment-buttons {
      flex-direction: column;
    }
    
    .btn {
      width: 100%;
      min-height: 48px;
    }
  }

  .radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    touch-action: manipulation;
    min-height: 44px;
    text-align: left;
  }

  .radio-option:hover {
    background-color: #f8f9fa;
  }

  .radio-option input[type="radio"] {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  @media (max-width: 480px) {
    .radio-option input[type="radio"] {
      width: 22px;
      height: 22px;
    }
  }

  .radio-option label {
    cursor: pointer;
    font-size: 0.95rem;
    flex: 1;
  }

  .comments-section {
    margin-bottom: 0.5rem;
  }

  .comments-section h4 {
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 1rem;
  }

  .comments-section textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }

  @media (max-width: 480px) {
    .comments-section textarea {
      padding: 1rem;
      font-size: 16px;
      /* Prevents zoom on iOS */
      min-height: 100px;
    }
  }

  .waiver-section {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
  }

  .waiver-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    touch-action: manipulation;
  }

  .waiver-checkbox input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
  }

  @media (max-width: 480px) {
    .waiver-checkbox input[type="checkbox"] {
      width: 22px;
      height: 22px;
    }
  }

  .waiver-checkbox label {
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    flex: 1;
  }

  .waiver-checkbox label a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 500;
  }

  .waiver-checkbox label a:hover,
  .waiver-checkbox label a:focus {
    color: #0052a3;
    text-decoration: none;
  }

  .waiver-note {
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
    color: #856404;
    font-style: italic;
    padding-left: 2rem;
  }

  @media (max-width: 480px) {
    .waiver-note {
      padding-left: 0;
      margin-top: 0.75rem;
    }
  }

  .dialog-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
  }

  @media (max-width: 480px) {
    .dialog-buttons {
      flex-direction: column;
      gap: 0.75rem;
    }
  }

  .dialog-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    touch-action: manipulation;
    min-height: 44px;
  }

  @media (max-width: 480px) {
    .dialog-btn {
      padding: 1rem;
      font-size: 1rem;
      width: 100%;
    }
  }

  .dialog-btn-ok {
    background-color: #198754;
    color: white;
  }

  .dialog-btn-ok:hover,
  .dialog-btn-ok:focus {
    background-color: #157347;
  }

  .dialog-btn-disabled,
  .dialog-btn-ok:disabled {
    background-color: #d0d0d0;
    color: #888;
    cursor: not-allowed;
    opacity: 0.6;
  }

  .dialog-btn-disabled:hover,
  .dialog-btn-ok:disabled:hover {
    background-color: #d0d0d0;
  }

  .dialog-btn-cancel {
    background-color: #6c757d;
    color: white;
  }

  .dialog-btn-cancel:hover,
  .dialog-btn-cancel:focus {
    background-color: #5a6268;
  }

  /* Accessibility improvements */
  @media (prefers-reduced-motion: reduce) {
    button:active {
      transform: none;
    }
  }

  /* Dialog Message Styles - Success/Error Inline Messages */
  .dialog-message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .dialog-message-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
  }

  .dialog-message-error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
  }

  .dialog-message .message-icon {
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
  }

  .dialog-message-success .message-icon {
    color: #198754;
  }

  .dialog-message-error .message-icon {
    color: #dc3545;
  }

  .dialog-message .message-text {
    flex: 1;
    font-weight: 500;
  }

  /* Success next steps - appears after success message */
  .success-next-steps {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #badbcc;
    font-size: 0.9rem;
    font-weight: normal;
    color: #0f5132;
    line-height: 1.6;
  }

  @media (max-width: 480px) {
    .dialog-message {
      padding: 0.875rem;
      font-size: 0.9rem;
    }

    .dialog-message .message-icon {
      font-size: 1.25rem;
    }

    .success-next-steps {
      font-size: 0.85rem;
      margin-top: 0.5rem;
      padding-top: 0.5rem;
    }
  }

  /* Support Section */
  .support-section {
    margin: 1.5rem 0 0.5rem 0;
    text-align: center;
  }

  /* FAQ Link Section */
  .faq-section {
    margin: 0.5rem 0 1.5rem 0;
    padding-top: 1rem;
    text-align: center;
    border-top: 1px solid #dee2e6;
  }

  .faq-section .lookup-subtext {
    margin: 0;
  }

  .faq-link {
    display: inline-block;
    color: #607890;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0;
    margin-top: 0.125rem;
    transition: color 0.2s ease;
  }

  .faq-link:hover {
    color: #036;
    text-decoration: underline;
  }

  @media (max-width: 480px) {
    .faq-section {
      margin: 1rem 0;
      padding-top: 0.75rem;
    }

    .faq-link {
      font-size: 0.9rem;
    }
  }
}



