/* ===== RESET ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
}

/* ===== STICKY FOOTER FIX ===== */
html, body {
    height: 100%;
}

.layout-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-wrapper {
    flex: 1;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    /* padding: 20px; */
}

/* ===== HEADER ===== */
.top-banner {
    background: #1f2937;
    padding: 16px 0;
}

.banner-inner {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner-left img,
.banner-right img {
    max-height: 90px;
    width: auto;
}

/* ===== PARTNER STRIP ===== */
.secondary-logo-strip {
    max-width: 1100px;
    margin: 20px auto 30px auto;
    text-align: center;
}

.secondary-logo-strip img {
    width: 100%;
    border-radius: 20px;
}

/* ===== CONTENT BOX ===== */
.content-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
}

.desc {
    color: #555;
    margin-bottom: 20px;
}

/* ===== PRICING ===== */
.pricing-card ul {
    padding-left: 18px;
    line-height: 1.8;
}

.pricing-card strong {
    display: block;
    margin-top: 10px;
}

/* ===== CTA BUTTON ===== */
.btn-primary {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.cta-center {
    text-align: center;
    margin-top: 25px;
}

/* ===== FORM ===== */
form {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.form-col {
    display: flex;
    flex-direction: column;
}

.col-12 { width: 100%; }
.col-6  { width: calc(50% - 8px); }
.col-4  { width: calc(33.333% - 10px); }
.col-3  { width: calc(25% - 12px); }

input, textarea, select {
    padding: 10px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-size: 14px;
}

label {
    font-weight: 600;
    margin-bottom: 5px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #1f2937;
    color: #fff;
    text-align: center;
    /* padding: 15px 0; */
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .banner-inner {
        flex-direction: row;
        padding: 0 12px;
    }

    .banner-left img,
    .banner-right img {
        max-height: 55px;
    }

    .col-6,
    .col-4,
    .col-3 {
        width: 100%;
    }

    .content-box {
        padding: 20px;
    }
}

#member_results {
    background: #fff;
    margin-top: 5px;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.member-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.member-item:hover {
    background: #f0f7ff;
}

.form-wrapper {
    margin-top: 20px;
}

.reg-type-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.conditional-section {
    margin-top: 15px;
}

.member-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.member-item:hover {
    background: #f0f7ff;
}

.member-item.no-result {
    cursor: default;
    color: #777;
}

.form-wrapper {
    margin-top: 20px;
}

.price-preview-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 0;
    border-bottom: 1px solid #eaecef;
}

.price-row:last-child {
    border-bottom: 0;
}

.price-row.grand strong {
    color: #0d6efd;
}

.remove-btn {
    margin-top: 12px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
}

.remove-btn:hover {
    background: #bb2d3b;
}

hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 20px 0;
}

.content-box {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
}

.reg-type-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-card {
    padding: 10px 15px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.radio-card input {
    margin: 0;
}

.member-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.member-item:hover {
    background: #f5faff;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-col {
    display: flex;
    flex-direction: column;
}

.col-4 { width: 30%; }
.col-8 { width: 70%; }

.member-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.member-item:hover {
    background: #f5faff;
}

.attendee-block {
    border: 1px solid #eee;
    padding: 15px;
    margin-top: 15px;
    border-radius: 6px;
    background: #fafafa;
}

.attendee-block .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.attendee-block .form-col {
    flex: 1 1 150px;
}

.section-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 20px 0;
}

input[readonly],
textarea[readonly] {
    background: #f3f4f6;
    cursor: not-allowed;
    color: #6b7280;
}

.remove-btn {
    background: #fee2e2;
    color: #b91c1c;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.remove-btn:hover {
    background: #ef4444;
    color: #fff;
}

#add_attendee {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

#add_attendee:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.attendee-block {
    border: 1px solid #e5e7eb;
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
    background: #fafafa;
}

.row-1,
.row-2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.row-2 {
    grid-template-columns: repeat(3, 1fr);
}

.attendee-header {
    font-weight: 600;
    margin-bottom: 10px;
    color: #1f2937;
}

.field-group {
    display: flex;
    flex-direction: column;
}

.field-group label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.field-group input,
.field-group select {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.2s;
}

.field-group input:focus,
.field-group select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* Grid */
.row-1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 10px;
}

.row-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Remove button alignment */
.remove-wrap {
    display: flex;
    justify-content: flex-end;
}

/* Header */
.attendee-header {
    font-weight: 600;
    margin-bottom: 12px;
    color: #111827;
}

.inline-check {
    margin-bottom: 15px;
    margin-top: 15px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-group label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.row-1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

/* Make last row auto-fit */
.row-1 .field-group:only-child {
    grid-column: span 2;
}

/* Inputs consistency */
/* Apply only to text inputs, NOT radios */
.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="date"],
.field-group input[type="number"],
.field-group select,
.field-group textarea {
    width: 100%;
    height: 38px;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

/* textarea fix */
.field-group textarea {
    height: auto;
    min-height: 80px;
}

.section-title {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #111827;
}

/* ===== TRAVEL CARD ===== */
.travel-card {
    background: #f9fafb;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

/* 3 column layout for travel */
.row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

/* 2 column layout for emergency */
.row-2-custom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

/* consistent input style */
.travel-card .field-group input,
.travel-card .field-group select,
.travel-card .field-group textarea {
    background: #fff;
}

/* textarea height */
.travel-card textarea {
    min-height: 90px;
}

/* Fix radio buttons */
.field-group input[type="radio"] {
    width: auto;
    height: auto;
    margin-right: 6px;
    transform: scale(1); /* normal size */
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 5px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
}

/* Container */
.attendee-block.compact {
    border: 1px solid #e5e7eb;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fafafa;
}

/* Header */
.attendee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.serial-no {
    font-weight: 600;
    font-size: 14px;
}

/* Small remove icon */
.remove-btn-icon {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 13px;
    text-align: center;
    line-height: 26px;
}

.remove-btn-icon:hover {
    background: #dc2626;
    color: #fff;
}

/* Single row layout */
.attendee-row {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1.8fr 1.2fr 1fr 1fr;
    gap: 10px;
    align-items: end;
}

/* Reduce field size */
.attendee-row .field-group input,
.attendee-row .field-group select {
    height: 34px;
    font-size: 13px;
    padding: 6px 8px;
}

/* Label smaller */
.attendee-row .field-group label {
    font-size: 12px;
    margin-bottom: 3px;
    display: block;
}

/* Hide conference initially */
.conference-field {
    display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .attendee-row {
        grid-template-columns: 1fr 1fr;
    }
}
.required-star {
    color: #dc2626;
    margin-left: 2px;
    font-weight: 600;
}

input.error,
select.error,
textarea.error {
    border-color: #dc2626 !important;
    background: #fff5f5 !important;
}

.member-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    width: 100%;
}

.member-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.member-col:first-child {
    flex: 0.4; /* smaller */
}

.member-col:last-child {
    flex: 0.6; /* larger search */
}

/* Make input full width */
.member-col input,
.member-col select {
    width: 100%;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .member-row {
        flex-direction: column;
    }
}

/* Parent should be relative */
.member-col {
    position: relative;
}

/* Dropdown styling */
#member_results {
    position: absolute;
    top: 100%; /* just below input */
    left: 0;
    width: 100%;
    max-height: 220px; /* FIXED HEIGHT */
    overflow-y: auto;
    background: #fff;
    border-radius: 6px;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Each item */
#member_results div {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
}

/* Hover */
#member_results div:hover {
    background: #f5f7fa;
}

/* Active / selected */
#member_results .active {
    background: #eef2ff;
}

/* GRID LAYOUT */
.form-grid-5 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* FIXED → better UX */
    gap: 15px;
    margin-top: 10px;
}

/* IMPORTANT FIX */
.form-grid-5 input,
.form-grid-5 textarea {
    width: 100%;              /* 🔥 THIS IS MISSING */
    box-sizing: border-box;   /* 🔥 PREVENT OVERFLOW */
    padding: 10px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 14px;
    height: 44px;
}

/* TEXTAREA */
.form-grid-5 textarea {
    height: 60px;
    resize: none;
    grid-column: span 4; /* FULL WIDTH ADDRESS */
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .form-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .form-grid-5 {
        grid-template-columns: 1fr;
    }
}

.form-grid {
    display: grid;
    gap: 15px;
    margin-top: 10px;
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* 5 COLUMN GRID FOR ATTENDEE */
.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* ATTENDEE BLOCK */
.attendee-block {
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fafafa;
}

/* HEADER */
.attendee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.serial-no {
    font-weight: 600;
    font-size: 14px;
}

/* SMALL X BUTTON */
.remove-btn-icon {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: #ffe5e5;
    color: #d11a2a;
    font-size: 14px;
    cursor: pointer;
}

/* HOVER */
.remove-btn-icon:hover {
    background: #ffcccc;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .grid-5 {
        grid-template-columns: 1fr;
    }
}
.error {
    border-color: #dc2626 !important;
    background: #fff5f5;
}

.error-text {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
}

.field-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.error-text {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
}

.price-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-top: 15px;
}

.price-left {
  background: #fff;
}

.payment-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.payment-box {
  border: 1px solid #e5e7eb;
  padding: 15px;
  border-radius: 8px;
  background: #fafafa;
}

.sub-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: #111827;
}

.qr-box {
  text-align: center;
}

.qr-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 10px auto;
}

.qr-note {
  font-size: 13px;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
  .price-layout {
    grid-template-columns: 1fr;
  }
}

/* TOP PRICE SECTION */
.price-top {
  margin-bottom: 20px;
}

/* BOTTOM PAYMENT GRID */
.payment-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* BOX STYLE (MATCH YOUR UI) */
.payment-box {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  background: #fafafa;
}

/* TITLE */
.sub-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: #111827;
}

/* QR CENTER */
.qr-box {
  text-align: center;
}

/* QR IMAGE */
.qr-img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 10px auto;
}

/* NOTE */
.qr-note {
  font-size: 13px;
  color: #6b7280;
}

/* TOTAL STYLE */
.price-row.grand {
  font-size: 18px;
  color: #2563eb;
  margin-top: 10px;
}

/* MOBILE */
@media (max-width: 768px) {
  .payment-layout {
    grid-template-columns: 1fr;
  }
}
.utr-box {
  margin-top: 15px;
  text-align: left;
}

.utr-box label {
  font-size: 13px;
  margin-bottom: 5px;
  display: block;
  color: #374151;
}

.utr-box input {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.submit-section {
  text-align: center;
  margin-top: 20px;
}

.submit-section .btn-primary {
  display: inline-block;
}

.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  z-index: 999;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.dropdown-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
}

.dropdown-item:hover {
  background: #f3f4f6;
}

#president_details {
  background: #f9fafb;
  padding: 12px;
  border-radius: 6px;
}
/* ---------------------------------------------------- thank you page styles */
.thankyou-box {
    text-align: center;
    padding: 40px 20px;
}

/* Tick */
.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    stroke: #fff;
    stroke-width: 4;
    fill: none;
}

/* Title */
.thankyou-box h2 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #222;
}

/* Description */
.thankyou-box p {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
}

/* Reg Number */
.reg-box {
    background: #f4f7fb;
    padding: 12px 15px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Buttons */
.btn-group {
    margin-top: 15px;
}

.btn-primary {
    padding: 12px 25px;
    background: #C62828;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    margin: 5px;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #a61c1c;
}

.btn-secondary {
    padding: 12px 25px;
    background: #eee;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    margin: 5px;
    display: inline-block;
}
/* ---------------------------------------------------- end thank you page styles */