/* Utility resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none !important;
  box-shadow: none !important;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #f5f6fa 0%, #e9ecef 100%);
  min-height: 100vh;
  color: #2a2a2a;
}

/* Headings and paragraphs */
h1, h2 {
  font-weight: 700;
  color: #262677;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

p {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Main wrappers */
.formbold-main-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 30px 10px 10px 10px;
  min-height: 100vh;
  flex: 1;
}

.formbold-form-wrapper {
  margin: 0 auto;
  width: 100%;
  /* max-width: 1050px; */
  background: #fff;
  padding: 32px 24px 40px 24px;
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(49, 56, 96, 0.11);
  position: relative;
  z-index: 1;
}

/* Form labels, subtext, and inputs */
.formbold-form-label {
  display: block; 
  margin-top: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #3a3557;
  line-height: 1.3;
}

.upload-label{
  display: block; 
  margin-top: 10px;
  margin-bottom: 5px;
}

.formbold-form-subtext {
  font-size: 0.97rem;
  color: #6a6d78;
  margin-bottom: 14px;
}

.formbold-form-input,
.formbold-form-select {
  width: 100%;
  padding: 13px 18px;
  border-radius: 6px;
  border: 1px solid #d2d6e7;
  background: #f9f9fd;
  font-size: 1rem;
  color: #2a2a2a;
  margin-bottom: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.formbold-form-input:focus,
.formbold-form-select:focus {
  border-color: #6a64f1;
  background: #f4f6ff;
  box-shadow: 0 2px 6px rgba(106,100,241,0.06);
}

.formbold-form-input::placeholder {
  color: #9aa1b9;
}

/* Buttons */
.button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.formbold-btn {
  flex: 1;
  max-width: 160px;
  margin: 0 10px;
  padding: 12px 18px;
  font-size: 1.07rem;
  text-align: center;
  border: none;
  border-radius: 7px;
  background-color: #6a64f1;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.23s, box-shadow 0.23s;
  box-shadow: 0 1px 5px rgba(106,100,241,0.09);
}

.formbold-btn:hover,
.formbold-btn:focus {
  background: #534ee2;
  box-shadow: 0 3px 14px rgba(106,100,241,0.14);
}

/* Cards and grid */
.formbold-card 
{
  background: #f4f5fb;
  padding: 22px 10px 18px 10px;
  border-radius: 9px;
  text-align: center;
  cursor: pointer;
  transition: background 0.23s, box-shadow 0.23s, border-color 0.23s;
  border: 1.5px solid transparent;
  margin-bottom: 10px;
}

.formbold-card:has(input[type="checkbox"]:checked),
.formbold-card:has(input[type="radio"]:checked) {
  background: #dee3fa;
  border-color: #6a64f1;
  box-shadow: 0 2px 12px rgba(106,100,241,0.15);
}
.formbold-radio-label,.formbold-radio-checkbox, 
.formbold-radio-label * {
  cursor: pointer !important;
}

.formbold-card:hover, .formbold-card:focus-within {
  background: #e7eafe;
  border-color: #a7a4e8;
  box-shadow: 0 2px 8px rgba(106,100,241,0.07);
}

/* Radio/Checkbox visual highlight */
/* .formbold-input-radio:checked + .formbold-card-content,
.formbold-input-checkbox:checked + .formbold-card-content { 
  background: #dee3fa;
  border-radius: 8px;
}  */

.formbold-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  outline: none;
}

.large-text {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #312f7c;
}

.small-text {
  font-size: 0.94rem;
  color: #767696;
}

/* Hide native checkbox and radio visuals */
.formbold-input-radio,
.formbold-input-checkbox {
  display: none;
}

/* Grids */
.formbold-grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .formbold-form-wrapper {
    max-width: 98vw;
    padding: 18px 6px;
  }
}

@media (max-width: 700px) {
  .formbold-grid-two-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .formbold-form-wrapper {
    padding: 10px 0;
  }
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: #fcfcff;
}

th, td {
  padding: 9px 5px;
  text-align: center;
  border: 1px solid #e1e4ed;
}

th {
  font-weight: bold;
  background: #eaeafd;
  color: #31317d;
}

.row-header {
  text-align: left;
  font-weight: 600;
  color: #474787;
}

/* Hideable sections */
.hidden {
  display: none !important;
}

/* Textarea */
#text-box {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
#text-box textarea {
  width: 100%;
  min-height: 96px;
  padding: 10px;
  border: 1px solid #b7bbe0;
  border-radius: 6px;
  background: #fafaff;
  font-size: 1rem;
  color: #312f7c;
  resize: vertical;
  box-shadow: 0 1px 3px rgba(49, 56, 96, 0.05);
}

/* Navigation tabs */
.form-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  padding: 16px;
  border-top: 1px solid #e3e3f4;
}

.form-tab {
  display: inline-block;
  padding: 10px 15px;
  font-size: 15px;
  color: #6a64f1;
  text-decoration: none;
  background: #f5f5fa;
  border-radius: 5px;
  border: 1px solid #6a64f1;
  transition: background 0.18s, color 0.18s;
}

/* Add to your style.css */
.form-tab.active {
  background: #6a64f1;
  color: #fff;
  /* font-weight: bold; */
  border-color: #6a64f1;
}

.form-tab:hover,
.form-tab:focus {
  background: #6a64f1;
  color: #fff;
}

/* Footer stays on bottom but doesn't cover form content */
footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  background: #f8f9fa;
  padding: 8px 20px;
  text-align: center;
  box-shadow: 0 -2px 6px rgba(49,56,96,0.11);
  z-index: 1000;
  border-radius: 9px;
  font-size: 1.02rem;
}

.formbold-form-wrapper {
  margin-bottom: 16rem; /* Footer height safety */
}

/* Large tablets and small desktops */
@media (max-width: 1100px) {
  .formbold-form-wrapper
   {
    margin-bottom: 22rem;
  }
}

/* Tablets */
@media (max-width: 900px) {
  .formbold-form-wrapper {
    margin-bottom: 25rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .formbold-form-wrapper
  {
        margin-bottom: 32rem;

  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; 
  height: 100vh;
  background: rgba(24, 26, 52, 0.23);
  backdrop-filter: blur(3px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-overlay[style*="display: flex"] {
  display: flex !important; /* ensure flex when shown */
}

.modal-content {
  background: #fff;
  border-radius: 9px;
  padding: 2.5rem 1.5rem;
  max-width: 600px;
  width: 94vw;
  box-shadow: 0 8px 36px rgba(49,56,96,0.21);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}
@media (max-width: 600px) {
  .modal-content {
    max-width: 98vw;
    width: 98vw;
    padding: 14px 6px;
    font-size: 15px;
  }
  .modal-content h2 {
    font-size: 18px;
  }
  .modal-content ol {
    font-size: 14px;
  }
}
.modal-content .formbold-heading {
  margin-bottom: 1.2rem;
}

.modal-content .formbold-list {
  margin-left: 1.2rem;
  margin-bottom: 1.3rem;
}

.modal-content .formbold-modal-close {
  display: inline-block;
  background: #6a64f1;
  color: #fff;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 14px;
  font-weight: 600;
}

.modal-content .formbold-modal-close:hover {
  background: #534ee2;
}

