:root {
  --maroon: #76002f;
  --maroon-dark: #4b001f;
  --rose: #e7356f;
  --gold: #f7b824;
  --ink: #1d1028;
  --muted: #6f6677;
  --line: #ece7ef;
  --panel: #ffffff;
  --soft: #fff8ef;
  --green: #31b978;
  --shadow: 0 14px 36px rgba(39, 13, 31, .12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fbfafb;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

.site-header {
  min-height: 118px;
  color: #fff;
  background: radial-gradient(circle at 76% 5%, rgba(247, 184, 36, .18), transparent 22%), linear-gradient(135deg, var(--maroon-dark), var(--maroon) 58%, #59002a);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 36px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 10px 28px rgba(76, 0, 32, .18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 280px;
}

.ganesh-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 44px;
  background: rgba(255, 255, 255, .08);
}

.brand h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand p {
  margin: 5px 0 0;
  color: #ffdf74;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

  .nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 8px;
    display: inline-flex;
    gap: 9px;
    align-items: center;
  }

    .nav a.active {
      background: rgba(255, 255, 255, .13);
    }

.user-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.mobile-menu {
  display: none;
}

.page {
  max-width: 1840px;
  margin: 0 auto;
  padding: 28px 36px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: 30px;
}

.hero-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
}

.lead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px 160px;
  gap: 16px;
  margin-bottom: 30px;
  max-width: 860px;
}

.field {
  min-height: 52px;
  border: 1px solid #ded8e2;
  background: #fff;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--muted);
}

  .field input, .field select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #4c4258;
  }

.pandal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 24px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 7px 22px rgba(35, 14, 31, .08);
  overflow: hidden;
}

.pandal-card {
  position: relative;
}

.rank {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #c01861, #7d0035);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
}

.pandal-image {
  min-height: 220px;
  background: radial-gradient(circle at 50% 44%, rgba(255, 218, 120, .9), transparent 12%), radial-gradient(circle at 50% 58%, rgba(230, 74, 68, .75), transparent 18%), radial-gradient(circle at 20% 20%, rgba(252, 183, 36, .5), transparent 16%), linear-gradient(145deg, #221006, #8d3b00 38%, #130912 72%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 82px;
  text-shadow: 0 7px 18px rgba(0, 0, 0, .35);
}

.pandal-card:nth-child(2n) .pandal-image {
  background: radial-gradient(circle at 50% 48%, rgba(255, 224, 122, .9), transparent 12%), radial-gradient(circle at 50% 60%, rgba(215, 62, 39, .6), transparent 18%), linear-gradient(145deg, #170c0b, #7b1900 45%, #321006);
}

.pandal-card:nth-child(3n) .pandal-image {
  background: radial-gradient(circle at 50% 46%, rgba(183, 216, 255, .9), transparent 13%), radial-gradient(circle at 50% 60%, rgba(90, 57, 201, .72), transparent 19%), linear-gradient(145deg, #07091d, #481ea5 48%, #120718);
}

.pandal-info {
  padding: 16px;
}

  .pandal-info h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.3;
  }

.location {
  color: var(--muted);
  margin: 0 0 13px;
}

.votes {
  color: #e71f5f;
  font-weight: 800;
  margin: 0 0 16px;
}

.vote-btn, .primary-btn {
  width: 100%;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #a00043, #76002f);
  min-height: 42px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.info-strip {
  margin-top: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(35, 14, 31, .08);
  padding: 20px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: #f0edff;
}

.info-item h4 {
  margin: 0 0 5px;
}

.info-item p {
  margin: 0;
  color: var(--muted);
}

.side {
  display: grid;
  gap: 28px;
  align-content: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.panel h3 {
  margin: 0;
  font-size: 25px;
}

.link {
  color: var(--ink);
  text-decoration: none;
}

.steps {
  display: grid;
  gap: 22px;
}

.step {
  display: flex;
  align-items: center;
  gap: 16px;
}

  .step b {
    display: block;
    margin-bottom: 4px;
  }

  .step span {
    color: var(--muted);
    font-size: 14px;
  }

.results-list {
  display: grid;
  gap: 18px;
}

.result-row {
  display: grid;
  grid-template-columns: 28px 1fr 52px;
  gap: 12px;
  align-items: center;
}

.result-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0eef2;
  display: grid;
  place-items: center;
  font-weight: 800;
}

  .result-rank.gold {
    color: #b77500;
    background: #fff2cf;
  }

.result-row b {
  display: block;
  margin-bottom: 6px;
}

.bar {
  height: 7px;
  background: #e9e7ea;
  border-radius: 999px;
  overflow: hidden;
}

  .bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #e7356f, #ff5d8e);
    border-radius: inherit;
  }

.result-vote {
  text-align: right;
  color: #4d4458;
}

.festival-banner {
  min-height: 124px;
  color: #fff;
  background: radial-gradient(circle at 10% 50%, rgba(255, 211, 77, .35), transparent 20%), linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  display: flex;
  align-items: center;
  gap: 24px;
  flex-direction: row;
  padding: 14px 10px;
  justify-content: space-between;
}

  .festival-banner .ganesh-mark {
    background: transparent;
    font-size: 66px;
    width: 92px;
    height: 92px;
  }

  .festival-banner h3 {
    color: #ffdf74;
  }

  .festival-banner p {
    margin: 5px 0 0;
  }

.modal-area {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 24px;
}

.phone-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
}

  .phone-card .ganesh-mark {
    margin: 0 auto 14px;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: #fff7e8;
    font-size: 70px;
  }

  .phone-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
  }

  .phone-card p {
    color: var(--muted);
    margin: 0 0 22px;
  }

.mobile-input {
  display: flex;
  border: 1px solid #ded8e2;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
}

  .mobile-input span {
    min-width: 72px;
    padding: 14px 10px;
    border-right: 1px solid #ded8e2;
    background: #fff;
  }

  .mobile-input input {
    border: 0;
    outline: 0;
    width: 100%;
    padding: 14px;
  }

.otp-boxes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
  margin: 24px 0;
}

  .otp-boxes span {
    height: 50px;
    border: 1px solid #d9d4de;
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-weight: 800;
  }

.otp-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
  margin: 24px 0;
}

  .otp-container input {
    width: 50px;
    height: 50px;
    border: 1px solid #d9d4de;
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-weight: 800;
  }

.success {
  background: #eefaf3;
  color: #0b9a5d;
  border-radius: 8px;
  padding: 14px;
  font-weight: 700;
}

.checkmark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  font-size: 42px;
}

/* ********************************************************************************************************************************************************************************************** */

.pandal-card {
  display: flex;
  flex-direction: column;
}

.pandal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.pandal-image {
  position: relative;
}

.pandal-image a {
    width: 100%;
    height: 100%;
}

.pandal-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pandal-info h3 {
  flex: 1;
}

.pandal-voting {
    padding: 50px 0;
}

.pandal-voting .phone-card {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.error-msg {
  padding: 28px 0 0px;
  position: relative;
}

/*.error {
  position: absolute;
  top: 4px;
  width: 100%;
}*/

.resend-container .resend-btn {
  background: transparent;
  color: #0000ff;
}

.otp-verify-btn {
  transition: opacity 0.2s ease;
}

.verified-success {
  animation: popIn 0.35s ease forwards;
}

.otpverify-error {
  position: relative;
  padding: 17px 0;
  width: 100%;
}

.otpverify-error .error {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }

  60% {
    opacity: 1;
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}


/*  */

.registration-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px 16px;
  background: #f4f6f9;
  min-height: 100vh;
}

.registration-card {
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.form-title {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
  color: #374151;
}

.required {
  color: #dc2626;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  resize: vertical;
}

.form-group select {
  width: 100%;
  padding: 10px 22px 10px 12px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  resize: vertical;
}

input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: #2563eb;
}

input.invalid,
textarea.invalid {
  border-color: #dc2626;
}

input[type="file"] {
  width: 100%;
  padding: 8px 0;
  font-size: 14px;
}

.hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.error-text {
  margin-top: 4px;
  font-size: 12px;
  color: #dc2626;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.image-preview-item {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.remove-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-btn:hover {
  background: #dc2626;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.form-actions button {
  flex: 1;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.form-actions button[type="submit"] {
background: #2563eb;
color: #fff;
}

.form-actions button[type="submit"]:hover:not(:disabled) {
  background: #1d4ed8;
}

.form-actions button:disabled {
opacity: 0.6;
cursor: not-allowed;
}

.reset-btn {
  background: #e5e7eb;
  color: #374151;
}

.reset-btn:hover:not(:disabled) {
  background: #d1d5db;
}

.submit-message {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

.submit-message.success {
background: #dcfce7;
color: #166534;
}

.submit-message.error {
background: #fee2e2;
color: #991b1b;
}

.ck.ck-powered-by {
  display: none !important;
}

.form-group .form-number {
  position: relative;
}

.form-group .form-number input {
  padding-left: 45px;
}

.form-group .form-number span {
  position: absolute;
  left: 5px;
  padding-right: 5px;
  border-right: 1px solid #d1d5db;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-group ckeditor .ck-editor__main .ck-content{
  height: 200px;
}

.form-group select:focus {
  border-color: rgb(37, 99, 235);
}

@media (max-width: 1600px) {
  .pandal-grid {
    grid-template-columns: repeat(3, minmax(210px, 1fr));
  }
}

@media (max-width: 1300px) {
  .pandal-grid {
    grid-template-columns: repeat(2, minmax(210px, 1fr));
  }
}

@media (max-width: 480px) {
  .registration-card {
    padding: 20px;
  }
}

  /*  */


  /* ********************************************************************************************************************************************************************************************** */


  @media (max-width: 1180px) {
    .page {
      grid-template-columns: 1fr;
    }

    .side {
      grid-template-columns: 1fr 1fr;
    }

    .festival-banner {
      grid-column: 1 / -1;
    }

    .pandal-grid {
      grid-template-columns: repeat(3, minmax(210px, 1fr));
      gap: 10px;
    }
  }

  @media (max-width: 760px) {
    .site-header {
      min-height: 92px;
      padding: 14px 18px;
    }

    .brand {
      min-width: 0;
    }

    .ganesh-mark {
      width: 48px;
      height: 48px;
      font-size: 34px;
    }

    .brand h1 {
      font-size: 20px;
    }

    .brand p {
      font-size: 13px;
    }

    .nav, .user-pill {
      display: none;
    }

    .mobile-menu {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      border-radius: 50%;
      color: #fff;
      background: rgba(255, 255, 255, .08);
      border: 1px solid rgba(255, 255, 255, .24);
      font-size: 24px;
    }

    .page {
      padding: 24px 16px 90px;
      display: block;
    }

    h2 {
      font-size: 26px;
    }

    .filters {
      grid-template-columns: 1fr;
    }

    .pandal-grid {
      grid-template-columns: repeat(2, minmax(210px, 1fr));
      gap: 16px;
    }

    .pandal-card {
      display: flex;
    }

    .pandal-image {
      min-height: 168px;
      font-size: 62px;
    }

    .rank {
      width: 34px;
      height: 34px;
      font-size: 16px;
      left: 12px;
      top: 12px;
    }

    .pandal-info {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

      .pandal-info h3 {
        font-size: 18px;
      }

    .info-strip, .side, .modal-area {
      grid-template-columns: 1fr;
    }

    .side {
      margin-top: 24px;
    }

    .panel {
      padding: 18px;
    }

    .festival-banner {
      padding: 18px;
    }

    .modal-area {
      margin-top: 24px;
    }

    .phone-card {
      border-radius: 22px;
      padding: 24px;
    }

  }
@media (max-width: 479px) {
  .pandal-grid {
    grid-template-columns: repeat(1, minmax(210px, 1fr));
  }
}
