    :root {
      --orange-50: #FFF7ED;
      --orange-100: #FFEDD5;
      --orange-200: #FED7AA;
      --orange-400: #FB923C;
      --orange-500: #F97316;
      --orange-600: #EA580C;
      --orange-700: #C2410C;
      --gray-50: #FAFAFA;
      --gray-100: #F4F4F5;
      --gray-200: #E4E4E7;
      --gray-300: #D4D4D8;
      --gray-400: #A1A1AA;
      --gray-500: #71717A;
      --gray-600: #52525B;
      --gray-700: #3F3F46;
      --gray-800: #27272A;
      --gray-900: #18181B;
      --green-500: #22C55E;
      --green-600: #16A34A;
      --green-100: #DCFCE7;
      --purple-500: #8B5CF6;
      --purple-600: #7C3AED;
      --purple-100: #EDE9FE;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: var(--gray-100);
      color: var(--gray-800);
      line-height: 1.6;
      min-height: 100vh;
      padding: 0 0 120px;
    }

    /* Top accent bar */
    .accent-bar {
      height: 4px;
      background: linear-gradient(90deg, var(--orange-500) 0%, var(--orange-400) 50%, var(--orange-500) 100%);
    }

    .container {
      max-width: 600px;
      margin: 0 auto;
      padding: 20px 16px;
    }

    /* Document Badge */
    .document-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--orange-500);
      color: #FFFFFF;
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    .document-badge.invoice {
      background: var(--gray-800);
    }

    .document-badge svg {
      width: 14px;
      height: 14px;
      fill: currentColor;
    }

    /* Top bar */
    .top-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }

    .download-button {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #FFFFFF;
      color: var(--gray-600);
      padding: 8px 14px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 500;
      border: 1px solid var(--gray-200);
      cursor: pointer;
      transition: all 0.2s;
      font-family: inherit;
    }

    .download-button:hover {
      background: var(--gray-50);
      border-color: var(--gray-300);
      color: var(--gray-800);
    }

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

    .download-button svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }

    /* Header Card */
    .header {
      background: #FFFFFF;
      border-radius: 12px;
      overflow: hidden;
      margin-bottom: 16px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    }

    .header-top {
      background: #FFFFFF;
      padding: 20px 24px;
      border-bottom: 1px solid var(--gray-100);
    }

    .business-section {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .business-logo {
      width: 56px;
      height: 56px;
      object-fit: cover;
      border-radius: 8px;
      border: 1px solid var(--gray-200);
      flex-shrink: 0;
    }

    .business-info {
      flex: 1;
      min-width: 0;
    }

    .business-name {
      font-size: 18px;
      font-weight: 700;
      color: var(--gray-800);
      margin-bottom: 4px;
      letter-spacing: -0.3px;
    }

    .business-details {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }

    .business-detail-row {
      display: flex;
      align-items: center;
      gap: 6px;
      color: var(--gray-500);
      font-size: 13px;
    }

    .business-detail-row svg {
      width: 12px;
      height: 12px;
      fill: var(--gray-400);
      flex-shrink: 0;
    }

    .header-body {
      padding: 20px 24px;
    }

    .business-address-row {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      color: var(--gray-500);
      font-size: 13px;
      margin-bottom: 16px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--gray-100);
    }

    .business-address-row svg {
      width: 14px;
      height: 14px;
      fill: var(--gray-400);
      flex-shrink: 0;
      margin-top: 2px;
    }

    /* Customer Section */
    .customer-section {
      background: var(--gray-50);
      border-radius: 8px;
      padding: 16px;
      border: 1px solid var(--gray-100);
    }

    .info-block-label {
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: var(--gray-400);
      margin-bottom: 4px;
    }

    .info-block-value {
      font-size: 16px;
      font-weight: 600;
      color: var(--gray-800);
    }

    .info-block-subvalue {
      font-size: 14px;
      color: var(--gray-500);
      margin-top: 4px;
    }

    .job-address {
      display: flex;
      align-items: center;
      gap: 4px;
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px dashed var(--gray-200);
    }

    .job-address svg {
      width: 12px;
      height: 12px;
      fill: var(--orange-500);
    }

    /* Date Pills */
    .date-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 16px;
    }

    .date-pills:empty { display: none; }

    .date-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--gray-100);
      padding: 8px 12px;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 500;
      color: var(--gray-600);
    }

    .date-pill svg {
      width: 14px;
      height: 14px;
      fill: var(--gray-400);
    }

    .date-pill.due {
      background: var(--orange-100);
      color: var(--orange-700);
    }

    .date-pill.due svg {
      fill: var(--orange-500);
    }

    /* Section Header */
    .section-header {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 11px;
      font-weight: 600;
      color: var(--gray-400);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin: 20px 0 12px 4px;
    }

    .section-header::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--gray-200);
    }

    /* Line Items */
    .line-items-card {
      background: #FFFFFF;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    }

    .line-item {
      padding: 14px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid var(--gray-100);
    }

    .line-item:last-child { border-bottom: none; }

    .line-item-info {
      display: flex;
      flex-direction: column;
      flex: 1;
      padding-right: 16px;
    }

    .line-item-name {
      font-weight: 500;
      color: var(--gray-800);
      margin-bottom: 2px;
    }

    .line-item-qty {
      font-size: 13px;
      color: var(--gray-400);
      font-family: 'JetBrains Mono', monospace;
    }

    .line-item-total {
      font-weight: 600;
      font-size: 15px;
      color: var(--gray-800);
      white-space: nowrap;
      font-family: 'JetBrains Mono', monospace;
    }

    /* Totals */
    .totals {
      background: #FFFFFF;
      border-radius: 12px;
      padding: 20px;
      margin-top: 12px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    }

    .totals-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 6px 0;
      font-size: 14px;
    }

    .totals-label { color: var(--gray-500); }

    .totals-value {
      font-weight: 500;
      color: var(--gray-700);
      font-family: 'JetBrains Mono', monospace;
    }

    .total-row {
      margin-top: 12px;
      padding-top: 16px;
      border-top: 2px solid var(--gray-100);
    }

    .total-label {
      font-size: 15px;
      font-weight: 600;
      color: var(--gray-800);
    }

    .total-value {
      font-size: 26px;
      font-weight: 700;
      color: var(--orange-600);
      font-family: 'JetBrains Mono', monospace;
      letter-spacing: -1px;
    }

    /* Notes */
    .notes {
      background: var(--orange-50);
      border-radius: 12px;
      padding: 16px 20px;
      border-left: 4px solid var(--orange-400);
    }

    .notes-label {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--orange-600);
      margin-bottom: 8px;
    }

    .notes-text {
      color: var(--orange-700);
      font-size: 14px;
      line-height: 1.7;
    }

    /* Payment Section */
    .payment-section {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: #FFFFFF;
      padding: 16px 20px;
      padding-bottom: max(20px, env(safe-area-inset-bottom));
      box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
      border-top: 1px solid var(--gray-100);
    }

    .action-button {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      max-width: 600px;
      margin: 0 auto;
      padding: 16px 24px;
      background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 100%);
      color: #FFFFFF;
      text-align: center;
      text-decoration: none;
      font-size: 16px;
      font-weight: 600;
      border-radius: 10px;
      border: none;
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
      box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
      font-family: inherit;
    }

    .action-button:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
    }

    .action-button:active { transform: translateY(0); }

    .action-button.approve {
      background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
      box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    }

    .action-button.approve:hover {
      box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
    }

    .action-button:disabled {
      opacity: 0.7;
      cursor: not-allowed;
      transform: none;
    }

    .action-button svg {
      width: 18px;
      height: 18px;
      fill: currentColor;
    }

    .status-banner {
      max-width: 600px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 16px 24px;
      border-radius: 10px;
      font-weight: 600;
      font-size: 15px;
    }

    .status-banner svg {
      width: 20px;
      height: 20px;
      fill: currentColor;
    }

    .status-banner.approved {
      background: var(--orange-100);
      color: var(--orange-600);
    }

    .status-banner.paid {
      background: var(--green-100);
      color: var(--green-600);
    }

    .zelle-info {
      max-width: 600px;
      margin: 0 auto;
      text-align: center;
      padding: 8px 16px;
    }

    .zelle-info p {
      margin-bottom: 4px;
      color: var(--gray-500);
    }

    .zelle-info strong { color: var(--gray-800); }

    .zelle-details {
      font-size: 20px;
      font-weight: 700;
      color: var(--orange-600);
      margin-top: 8px;
      font-family: 'JetBrains Mono', monospace;
    }

    /* Photos Grid */
    .photos-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 20px;
    }

    .photo-item {
      width: 90px;
      height: 90px;
      border-radius: 8px;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.2s;
      border: 2px solid var(--gray-100);
    }

    .photo-item:hover {
      transform: scale(1.05);
      border-color: var(--orange-300);
    }

    .photo-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Photo Lightbox */
    .lightbox {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.92);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      padding: 20px;
    }

    .lightbox-close {
      position: absolute;
      top: 20px;
      right: 20px;
      background: rgba(255, 255, 255, 0.15);
      border: none;
      color: white;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }

    .lightbox-close:hover {
      background: rgba(255, 255, 255, 0.25);
    }

    .lightbox img {
      max-width: 100%;
      max-height: 90vh;
      object-fit: contain;
      border-radius: 8px;
    }

    /* Loading & Error */
    .loading {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      min-height: 80vh;
      gap: 16px;
    }

    .spinner {
      width: 44px;
      height: 44px;
      border: 3px solid var(--gray-200);
      border-top-color: var(--orange-500);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .loading-text {
      color: var(--gray-500);
      font-size: 14px;
    }

    .error {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 80vh;
      text-align: center;
      padding: 20px;
    }

    .error-content {
      background: #FFFFFF;
      padding: 40px;
      border-radius: 16px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }

    .error-icon {
      width: 64px;
      height: 64px;
      background: var(--orange-100);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
    }

    .error-icon svg {
      width: 32px;
      height: 32px;
      fill: var(--orange-500);
    }

    .error-content h1 {
      color: var(--gray-800);
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 8px;
    }

    .error-content p {
      color: var(--gray-500);
      font-size: 14px;
    }

    .hidden { display: none !important; }

    /* Preview Banner */
    .preview-banner {
      background: var(--orange-100);
      color: var(--orange-700);
      padding: 12px 16px;
      text-align: center;
      font-weight: 600;
      font-size: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .preview-banner svg {
      width: 18px;
      height: 18px;
      fill: currentColor;
    }

    /* Powered by footer */
    .powered-by {
      text-align: center;
      margin-top: 32px;
      padding-bottom: 20px;
      font-size: 12px;
      color: var(--gray-400);
    }

    .powered-by a {
      color: var(--orange-500);
      text-decoration: none;
      font-weight: 600;
    }

    .powered-by a:hover {
      text-decoration: underline;
    }

    /* Blitz lightning icon */
    .blitz-icon {
      display: inline-block;
      width: 14px;
      height: 14px;
      margin-right: 2px;
      vertical-align: -2px;
    }

    /* Signature Modal */
    .signature-modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      padding: 20px;
    }

    .signature-modal {
      background: #FFFFFF;
      border-radius: 16px;
      max-width: 450px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    @media (min-width: 600px) {
      .signature-modal {
        max-width: 540px;
      }
    }

    .signature-modal-header {
      background: var(--orange-500);
      padding: 16px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-radius: 16px 16px 0 0;
    }

    .signature-modal-header h2 {
      color: #FFFFFF;
      font-size: 18px;
      font-weight: 700;
      margin: 0;
    }

    .signature-modal-close {
      background: rgba(0, 0, 0, 0.15);
      border: none;
      color: #FFFFFF;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }

    .signature-modal-close:hover {
      background: rgba(0, 0, 0, 0.25);
    }

    .signature-modal-body {
      padding: 24px;
    }

    .signature-form-group {
      margin-bottom: 20px;
    }

    .signature-form-group label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--gray-600);
      margin-bottom: 8px;
    }

    .signature-input {
      width: 100%;
      padding: 12px 14px;
      border: 1px solid var(--gray-200);
      border-radius: 8px;
      font-size: 15px;
      font-family: inherit;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .signature-input:focus {
      outline: none;
      border-color: var(--orange-400);
      box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
    }

    .signature-canvas-wrapper {
      position: relative;
      border: 2px solid var(--gray-200);
      border-radius: 12px;
      background: #FFFFFF;
      overflow: hidden;
    }

    #signatureCanvas {
      display: block;
      width: 100%;
      height: 150px;
      cursor: crosshair;
      touch-action: none;
    }

    .signature-canvas-placeholder {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: var(--gray-300);
      font-size: 14px;
      pointer-events: none;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
    }

    .signature-canvas-placeholder svg {
      width: 24px;
      height: 24px;
      fill: var(--gray-300);
    }

    .signature-clear-btn {
      margin-top: 8px;
      padding: 8px 14px;
      background: var(--gray-100);
      border: 1px solid var(--gray-200);
      border-radius: 6px;
      font-size: 13px;
      font-weight: 500;
      color: var(--gray-600);
      cursor: pointer;
      font-family: inherit;
      transition: all 0.2s;
    }

    .signature-clear-btn:hover {
      background: var(--gray-200);
      color: var(--gray-700);
    }

    .signature-consent {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin: 20px 0;
      padding: 12px;
      background: var(--gray-50);
      border-radius: 8px;
      border: 1px solid var(--gray-100);
    }

    .signature-consent input[type="checkbox"] {
      width: 18px;
      height: 18px;
      margin-top: 2px;
      accent-color: var(--orange-500);
      flex-shrink: 0;
    }

    .signature-consent label {
      font-size: 13px;
      color: var(--gray-600);
      line-height: 1.5;
      cursor: pointer;
    }

    .signature-modal-actions {
      display: flex;
      gap: 12px;
      margin-top: 24px;
    }

    .signature-cancel-btn {
      flex: 1;
      padding: 14px 20px;
      background: var(--gray-100);
      border: 1px solid var(--gray-200);
      border-radius: 10px;
      font-size: 15px;
      font-weight: 600;
      color: var(--gray-600);
      cursor: pointer;
      font-family: inherit;
      transition: all 0.2s;
    }

    .signature-cancel-btn:hover {
      background: var(--gray-200);
      color: var(--gray-700);
    }

    .signature-submit-btn {
      flex: 2;
      padding: 14px 20px;
      background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
      border: none;
      border-radius: 10px;
      font-size: 15px;
      font-weight: 600;
      color: #FFFFFF;
      cursor: pointer;
      font-family: inherit;
      transition: all 0.2s;
      box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    }

    .signature-submit-btn:hover {
      box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
      transform: translateY(-1px);
    }

    .signature-submit-btn:disabled {
      opacity: 0.7;
      cursor: not-allowed;
      transform: none;
    }

    /* Signed Badge */
    .signed-badge {
      display: flex;
      align-items: center;
      gap: 12px;
      background: var(--green-100);
      border: 1px solid #BBF7D0;
      padding: 14px 16px;
      border-radius: 10px;
      margin: 16px 0;
    }

    .signed-badge svg {
      width: 24px;
      height: 24px;
      fill: var(--green-600);
      flex-shrink: 0;
    }

    .signed-badge-info {
      flex: 1;
    }

    .signed-badge-title {
      font-weight: 600;
      color: var(--green-600);
      font-size: 14px;
    }

    .signed-badge-details {
      color: var(--gray-500);
      font-size: 12px;
      margin-top: 2px;
    }

    /* Scheduling Section */
    /* Sticky Action Bar */
    .action-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: #FFFFFF;
      padding: 16px 20px;
      padding-bottom: max(16px, env(safe-area-inset-bottom));
      box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
      border-top: 1px solid var(--gray-100);
      z-index: 100;
    }

    .action-bar-content {
      max-width: 600px;
      margin: 0 auto;
      display: flex;
      gap: 12px;
    }

    .action-bar-btn {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 14px 20px;
      border: none;
      border-radius: 10px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .action-bar-btn:hover {
      transform: translateY(-1px);
    }

    .action-bar-btn:active {
      transform: translateY(0);
    }

    .action-bar-btn svg {
      width: 18px;
      height: 18px;
      fill: currentColor;
    }

    .action-bar-btn.schedule {
      background: var(--gray-100);
      color: var(--gray-700);
      border: 1px solid var(--gray-200);
    }

    .action-bar-btn.schedule:hover {
      background: var(--gray-200);
    }

    .action-bar-btn.approve {
      background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
      color: #FFFFFF;
      box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    }

    .action-bar-btn.approve:hover {
      box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
    }

    .action-bar-btn.done {
      background: var(--green-100);
      color: var(--green-600);
      cursor: default;
    }

    .action-bar-btn.done:hover {
      transform: none;
    }

    .action-bar-single {
      justify-content: center;
    }

    .action-bar-single .action-bar-btn {
      max-width: 400px;
    }

    /* Confirmed Appointment Banner */
    .confirmed-appointment-banner {
      background: var(--green-100);
      border: 1px solid var(--green-500);
      border-radius: 12px;
      padding: 16px 20px;
      margin: 20px 0;
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .confirmed-appointment-banner svg {
      width: 28px;
      height: 28px;
      fill: var(--green-600);
      flex-shrink: 0;
    }

    .confirmed-appointment-info {
      flex: 1;
    }

    .confirmed-appointment-label {
      font-size: 12px;
      font-weight: 600;
      color: var(--green-600);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .confirmed-appointment-date {
      font-size: 16px;
      font-weight: 700;
      color: var(--gray-900);
      margin-top: 2px;
    }

    .confirmed-appointment-time {
      font-size: 14px;
      color: var(--gray-600);
    }

    /* Schedule Modal */
    .schedule-modal-subtitle {
      font-size: 14px;
      color: var(--gray-500);
      margin-bottom: 16px;
    }

    .schedule-modal-options {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 16px;
    }

    .schedule-modal-option {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      background: var(--gray-50);
      border: 2px solid var(--gray-200);
      border-radius: 10px;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s;
    }

    .schedule-modal-option:hover {
      border-color: var(--orange-300);
      background: var(--orange-50);
    }

    .schedule-modal-option.selected {
      border-color: var(--orange-500);
      background: var(--orange-50);
    }

    .schedule-modal-radio {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      border: 2px solid var(--gray-300);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .schedule-modal-option.selected .schedule-modal-radio {
      border-color: var(--orange-500);
    }

    .schedule-modal-radio-inner {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: transparent;
    }

    .schedule-modal-option.selected .schedule-modal-radio-inner {
      background: var(--orange-500);
    }

    .schedule-modal-details {
      flex: 1;
    }

    .schedule-modal-date {
      font-size: 15px;
      font-weight: 600;
      color: var(--gray-800);
    }

    .schedule-modal-time {
      font-size: 13px;
      color: var(--gray-500);
      margin-top: 2px;
    }

    .schedule-modal-contact {
      font-size: 13px;
      color: var(--gray-500);
      text-align: center;
      padding: 12px 0;
      border-top: 1px solid var(--gray-200);
      margin-top: 8px;
    }

    .schedule-modal-contact a {
      color: var(--orange-600);
      text-decoration: none;
      font-weight: 500;
    }

    .schedule-modal-note {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 14px 16px;
      background: var(--orange-50);
      border: 1px solid var(--orange-200);
      border-radius: 10px;
      margin-top: 12px;
    }

    .schedule-modal-note svg {
      width: 18px;
      height: 18px;
      fill: var(--orange-500);
      flex-shrink: 0;
      margin-top: 1px;
    }

    .schedule-modal-note span {
      font-size: 14px;
      color: var(--orange-700);
      line-height: 1.5;
    }

    .scheduling-section {
      margin: 20px 0;
    }

    .scheduling-card {
      background: #FFFFFF;
      border-radius: 12px;
      padding: 20px;
      border: 2px solid var(--orange-200);
      box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }

    .scheduling-header {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--orange-600);
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 12px;
    }

    .scheduling-header svg {
      width: 16px;
      height: 16px;
      fill: var(--orange-500);
    }

    .scheduling-date {
      font-size: 20px;
      font-weight: 700;
      color: var(--gray-800);
    }

    .scheduling-time {
      font-size: 16px;
      color: var(--gray-600);
      margin-top: 4px;
    }

    .scheduling-notes {
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px dashed var(--gray-200);
      font-size: 14px;
      color: var(--gray-500);
      font-style: italic;
    }

    .scheduling-contact-footer {
      margin-top: 20px;
      padding-top: 16px;
      border-top: 1px solid var(--gray-200);
      text-align: center;
    }

    .scheduling-contact-text {
      font-size: 13px;
      color: var(--gray-500);
      margin-bottom: 10px;
    }

    .scheduling-contact-phone {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 18px;
      background: var(--orange-500);
      color: #FFFFFF;
      font-size: 15px;
      font-weight: 600;
      text-decoration: none;
      border-radius: 8px;
    }

    .scheduling-contact-phone svg {
      width: 18px;
      height: 18px;
      fill: currentColor;
    }

    .scheduling-contact-phone:hover {
      background: var(--orange-600);
    }

    .schedule-confirm-btn {
      flex: 2;
      padding: 14px 20px;
      background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 100%);
      border: none;
      border-radius: 10px;
      font-size: 15px;
      font-weight: 600;
      color: #FFFFFF;
      cursor: pointer;
      box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
      font-family: inherit;
    }

    .schedule-confirm-btn:hover {
      opacity: 0.95;
    }

    .schedule-confirm-btn:disabled,
    .schedule-reschedule-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    .scheduling-confirmed {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 8px 0;
    }

    .scheduling-confirmed svg {
      width: 24px;
      height: 24px;
      fill: var(--green-600);
      flex-shrink: 0;
    }

    /* Scheduling Options - Multiple slot selection */
    .scheduling-subtitle {
      font-size: 14px;
      color: var(--gray-500);
      margin-bottom: 16px;
    }

    .schedule-options-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .schedule-option {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 16px;
      background: var(--gray-50);
      border: 2px solid var(--gray-200);
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s ease;
      position: relative;
    }

    .schedule-option:hover {
      border-color: var(--orange-300);
      background: var(--orange-50);
    }

    .schedule-option.selected {
      border-color: var(--orange-500);
      background: var(--orange-50);
    }

    .schedule-option.loading {
      opacity: 0.7;
      pointer-events: none;
    }

    .schedule-option.loading::after {
      content: '';
      position: absolute;
      right: 16px;
      width: 20px;
      height: 20px;
      border: 2px solid var(--orange-200);
      border-top-color: var(--orange-500);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    .schedule-option-radio {
      width: 22px;
      height: 22px;
      border: 2px solid var(--gray-300);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.2s ease;
    }

    .schedule-option:hover .schedule-option-radio {
      border-color: var(--orange-400);
    }

    .schedule-option.selected .schedule-option-radio {
      border-color: var(--orange-500);
      background: var(--orange-500);
    }

    .schedule-option-radio-inner {
      width: 8px;
      height: 8px;
      background: white;
      border-radius: 50%;
      opacity: 0;
      transform: scale(0);
      transition: all 0.2s ease;
    }

    .schedule-option.selected .schedule-option-radio-inner {
      opacity: 1;
      transform: scale(1);
    }

    .schedule-option-details {
      flex: 1;
    }

    .schedule-option-date {
      font-size: 16px;
      font-weight: 600;
      color: var(--gray-800);
    }

    .schedule-option-time {
      font-size: 14px;
      color: var(--gray-500);
      margin-top: 2px;
    }

    .scheduling-confirmed-msg {
      margin-top: 12px;
      font-size: 14px;
      color: var(--green-600);
      font-weight: 500;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* Modal Scheduling Section (inside signature modal) */
    .modal-scheduling-section {
      margin-bottom: 20px;
      padding: 16px;
      background: var(--orange-50);
      border: 2px solid var(--orange-200);
      border-radius: 12px;
    }

    .modal-scheduling-header {
      font-size: 14px;
      font-weight: 600;
      color: var(--orange-700);
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .modal-scheduling-header::before {
      content: '';
      display: inline-block;
      width: 16px;
      height: 16px;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23EA580C'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM5 8V6h14v2H5z'/%3E%3C/svg%3E");
      background-size: contain;
      flex-shrink: 0;
    }

    .modal-schedule-options {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .modal-schedule-option {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      background: #FFFFFF;
      border: 2px solid var(--gray-200);
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .modal-schedule-option:hover {
      border-color: var(--orange-300);
      background: #FFFFFF;
    }

    .modal-schedule-option.selected {
      border-color: var(--orange-500);
      background: #FFFFFF;
    }

    .modal-schedule-radio {
      width: 20px;
      height: 20px;
      border: 2px solid var(--gray-300);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.15s ease;
    }

    .modal-schedule-option:hover .modal-schedule-radio {
      border-color: var(--orange-400);
    }

    .modal-schedule-option.selected .modal-schedule-radio {
      border-color: var(--orange-500);
      background: var(--orange-500);
    }

    .modal-schedule-radio-inner {
      width: 6px;
      height: 6px;
      background: white;
      border-radius: 50%;
      opacity: 0;
      transform: scale(0);
      transition: all 0.15s ease;
    }

    .modal-schedule-option.selected .modal-schedule-radio-inner {
      opacity: 1;
      transform: scale(1);
    }

    .modal-schedule-details {
      flex: 1;
    }

    .modal-schedule-date {
      font-size: 14px;
      font-weight: 600;
      color: var(--gray-800);
    }

    .modal-schedule-time {
      font-size: 12px;
      color: var(--gray-500);
      margin-top: 2px;
    }

    .modal-scheduling-contact {
      margin-top: 16px;
      padding-top: 14px;
      border-top: 1px solid var(--gray-200);
      text-align: center;
    }

    .modal-scheduling-contact span {
      display: block;
      font-size: 12px;
      color: var(--gray-500);
      margin-bottom: 10px;
    }

    .modal-scheduling-phone {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      background: var(--orange-500);
      color: #FFFFFF;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      border-radius: 6px;
    }

    .modal-scheduling-phone svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }

    .modal-scheduling-phone:hover {
      background: var(--orange-600);
    }

    /* Contact contractor section (when none of the times work) */
    .modal-contact-contractor {
      text-align: center;
      padding: 16px 12px;
    }

    .modal-contact-header {
      font-size: 15px;
      font-weight: 600;
      color: var(--gray-800);
      margin-bottom: 6px;
    }

    .modal-contact-text {
      font-size: 13px;
      color: var(--gray-500);
      margin-bottom: 12px;
    }

    .modal-contact-phone {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 20px;
      background: var(--orange-500);
      color: #FFFFFF;
      font-size: 16px;
      font-weight: 600;
      text-decoration: none;
      border-radius: 10px;
      transition: background 0.2s;
    }

    .modal-contact-phone:hover {
      background: var(--orange-600);
    }

    .modal-contact-phone svg {
      width: 18px;
      height: 18px;
      fill: currentColor;
    }

    /* Standalone scheduling contact button */
    .schedule-contact-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 14px 24px;
      background: var(--orange-500);
      color: #FFFFFF;
      font-size: 16px;
      font-weight: 600;
      text-decoration: none;
      border-radius: 10px;
      transition: background 0.2s;
    }

    .schedule-contact-btn:hover {
      background: var(--orange-600);
    }

    .schedule-contact-btn svg {
      width: 18px;
      height: 18px;
      fill: currentColor;
    }
