
    * { box-sizing: border-box; }

    body {
      margin: 0;
      padding: 0;
      font-family: Arial, sans-serif;
      background: #f4f7fb;
      color: #222;
      padding-bottom: 90px;
    }

    .brand-header {
      background: #fff;
      padding: 12px 15px 10px;
      text-align: center;
      border-bottom: 1px solid #e5e7eb;
    }

    .brand-logo {
      display: block;
      width: min(230px, 72vw);
      height: auto;
      max-height: 92px;
      object-fit: contain;
      margin: 0 auto 7px;
    }

    .header-title {
      background: #f57c00;
      color: #fff;
      padding: 13px 12px;
      text-align: center;
      font-size: 19px;
      font-weight: 700;
      letter-spacing: .3px;
    }

    .container {
      width: 100%;
      max-width: 700px;
      margin: auto;
      padding: 15px;
    }

    .card {
      background: white;
      border-radius: 14px;
      padding: 16px;
      margin-bottom: 15px;
      box-shadow: 0 3px 12px rgba(0,0,0,.07);
    }

    .card-title {
      font-size: 17px;
      font-weight: 700;
      margin-bottom: 15px;
    }

    label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 6px;
      color: #444;
    }

  input {
      width: 100%;
      border: 1px solid #d7dce3;
      border-radius: 9px;
      padding: 12px;
      font-size: 15px;
      outline: none;
      background: white;
    }

input:focus { border-color: #2196f3; }

.input-group { margin-bottom: 14px; }

.input-group select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 15px;
    padding: 12px;
    font-size: 16px;
}

.state-group {
    width: 100%;
}

.state-group select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}


/*========================Electrical Details====================*/

.sanctioned-load-group input {
    margin-bottom: 10px;
}

.voltage-values {
    display: none;
}

.voltage-values.show {
    display: block;
}

.load-input {
    display: flex;
    gap: 10px;
}

.load-input input {
    flex: 1;
}

.load-input select {
  width: 110px;
}

.input-group label span {
  font-weight: 400;
  color: #777;
  font-size: 12px;
}

    .category-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      user-select: none;
      font-size: 15px;
      font-weight: 700;
      color: #1976d2;
      margin-bottom: 10px;
      padding-bottom: 7px;
      border-bottom: 1px solid #e5e5e5;
    }

    .category-icon {
      font-size: 24px;
      font-weight: 600;
      line-height: 1;
    }


    .category-body {
      display: none;
    }

    .category-body.open {
      display: block;
    }

    .appliance {
      border: 1px solid #e1e5ea;
      border-radius: 11px;
      padding: 12px;
      margin-bottom: 10px;
      background: #fff;
    }

    .appliance-name {
      font-size: 15px;
      font-weight: 700;
      margin-bottom: 10px;
    }

    .row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 9px;
    }

    .mini-input label {
      font-size: 11px;
      color: #666;
    }

    .mini-input input {
      padding: 9px;
      font-size: 14px;
    }

    .watts-box {
      background: #f1f5f9;
      border-radius: 8px;
      padding: 9px;
      font-size: 13px;
      color: #555;
    }

    .result {
      margin-top: 10px;
      padding: 9px;
      border-radius: 8px;
      background: #eef7ff;
      color: #1565c0;
      font-size: 13px;
      font-weight: 600;
    }

    .other-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #1976d2;
      color: white;
      padding: 12px 14px;
      border-radius: 11px;
      margin-bottom: 12px;
      font-weight: 700;
    }

    .add-btn {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: none;
      background: white;
      color: #1976d2;
      font-size: 23px;
      line-height: 30px;
      cursor: pointer;
      font-weight: bold;
    }

    .remove-btn {
      float: right;
      border: none;
      background: #ffebee;
      color: #d32f2f;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      font-size: 18px;
      cursor: pointer;
    }

    .total-card {
      background: linear-gradient(135deg, #1976d2, #2196f3);
      color: white;
      border-radius: 15px;
      padding: 18px;
      margin-bottom: 15px;
      box-shadow: 0 4px 14px rgba(25,118,210,.25);
    }

    .total-title {
      font-size: 14px;
      opacity: .9;
      margin-bottom: 5px;
    }

    .total-value {
      font-size: 27px;
      font-weight: 800;
    }

    .total-sub {
      margin-top: 8px;
      font-size: 14px;
      opacity: .95;
    }

    .bottom-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      background: white;
      padding: 10px 15px;
      box-shadow: 0 -3px 15px rgba(0,0,0,.12);
      z-index: 100;
    }


    /* Disclaimer */


    .calculation-note {
    width: min(1050px, calc(100% - 48px));
    margin: 20px auto 24px;
    padding: 18px 22px;
    box-sizing: border-box;

    background: #f7f9fc;
    border: 1px solid #dfe5ec;
    border-radius: 12px;

    color: #344054;
    font-size: 14px;
    line-height: 1.6;
}

.note-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;

    color: #172b4d;
    font-size: 16px;
    font-weight: 600;
}

.note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;
    border-radius: 50%;

    background: #e8f1ff;
    color: #2563eb;

    font-size: 14px;
    font-weight: 700;
}

.calculation-note p {
    margin: 0 0 10px;
}

.calculation-note p:last-child {
    margin-bottom: 0;
}

.hindi-note {
    color: #5f6672;
}


    /*================================================Preview===============================*/

    .preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.preview-box {
    width: 100%;
    max-width: 850px;
    max-height: 90vh;

    background: #ffffff;
    border-radius: 18px;

    overflow: hidden;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.preview-header h2 {
    margin: 0;
    font-size: 22px;
    color: #1769d1;
}

.preview-header button {
    border: none;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
    color: #555;
}

#previewContent {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.preview-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;

    padding: 18px 24px;
    border-top: 1px solid #e5e7eb;
}

.preview-actions button {
    border: none;
    border-radius: 8px;
    padding: 11px 16px;
    cursor: pointer;
    font-weight: 600;
}




    /* ================================
   PREVIEW TABLE
================================ */

.preview-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 15px;
}

.preview-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    font-size: 13px;
}

.preview-table th,
.preview-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    white-space: nowrap;
}

.preview-table th {
    background: #f5f7fa;
    font-weight: 600;
}

.preview-table tbody tr:hover {
    background: #f9fafb;
}

.preview-table td strong {
    font-weight: 600;
}

.customer-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 15px 0 20px;
}

.customer-preview-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.customer-preview-grid strong {
    font-size: 12px;
    color: #64748b;
}

.customer-preview-grid span {
    font-size: 14px;
    color: #1f2937;
    word-break: break-word;
}


.preview-total {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 18px;
}

.preview-total > div {
    padding: 12px 16px;
    background: #f5f7fa;
    border-radius: 8px;

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-total strong {
    font-size: 12px;
    color: #64748b;
}

.preview-total span {
    font-size: 17px;
    font-weight: 700;
}

    .save-btn {
      width: 100%;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
      max-width: 700px;
      display: block;
      margin: auto;
      border: none;
      border-radius: 11px;
      background: #f57c00;
      color: white;
      padding: 14px;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
    }

    .save-btn:disabled {
      opacity: .6;
      cursor: not-allowed;
    }

    .site-footer {
      text-align: center;
      font-size: 13px;
      color: #555;
      margin-top: 30px;
      padding-bottom: 20px;
    }

    .message {
      text-align: center;
      margin-top: 10px;
      font-size: 13px;
      font-weight: 600;
    }

    @media (max-width: 450px) {
      .container { padding: 10px; }
      .header-title { font-size: 18px; }
      .brand-logo { width: min(210px, 78vw); max-height: 82px; }
    }

    @media (max-width: 700px) {

    .customer-preview-grid {
        grid-template-columns: 1fr 1fr;
    }

    .preview-total {
        flex-direction: column;
    }

}

@media (max-width: 600px) {
    .state-group {
      width: 80%;
      height: 50%;
    }
    .state-group select {
        width: 50%;
        max-width: 80%;
        max-height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .calculation-note {
        width: calc(100% - 24px);
        padding: 15px 16px;
        font-size: 13px;
        line-height: 1.55;
    }

    .note-title {
        font-size: 15px;
    }
}

/* Email OTP verification */
.otp-controls { margin-top: 10px; }
.otp-actions { display: flex; gap: 9px; align-items: stretch; margin-top: 9px; flex-wrap: wrap; }
.otp-actions button { min-height: 42px; border: 0; border-radius: 9px; padding: 10px 14px; font-size: 14px; font-weight: 700; cursor: pointer; background: #f57c00; color: #fff; }
.otp-actions button.secondary { background: #e8eef7; color: #23344d; border: 1px solid #d5deea; }
.otp-actions button:disabled { opacity: .6; cursor: not-allowed; }
.otp-entry-row { display: flex; gap: 9px; margin-top: 10px; align-items: center; }
.otp-entry-row[hidden] { display: none !important; }
.otp-entry-row input { flex: 1; min-width: 0; letter-spacing: .22em; font-weight: 700; }
.otp-status { min-height: 18px; margin-top: 8px; font-size: 13px; line-height: 1.45; }
.otp-status.success { color: #16803c; }
.otp-status.error { color: #c62828; }
.otp-status.info { color: #526174; }
@media (max-width: 480px) {
  .otp-actions { display: grid; grid-template-columns: 1fr; }
  .otp-entry-row { align-items: stretch; flex-direction: column; }
  .otp-entry-row button { min-height: 42px; }
}
