:root {
  --ink: #0f0e0d;
  --paper: #f5f0e8;
  --rust: #c0440a;
  --rust-light: #e8651a;
  --warm-gray: #8c8070;
  --border: #d4c9b8;
  --shadow: rgba(15,14,13,0.12);
}

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

body {
  min-height: 100vh;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  padding: 2rem;
  position: relative;
  overflow: auto;
}

/* Texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Decorative rule lines */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 47px,
    rgba(196,180,160,0.15) 47px,
    rgba(196,180,160,0.15) 48px
  );
  pointer-events: none;
  z-index: 0;
}

.card {
  position: relative;
  z-index: 1;
  background: #faf6ef;
  border: 1px solid var(--border);
  box-shadow:
    4px 4px 0 var(--border),
    8px 8px 0 rgba(196,180,160,0.3),
    0 20px 60px var(--shadow);
  max-width: 700px;
  width: 100%;
  padding: 3.5rem;
  animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--rust);
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 0.3rem;
}
h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--rust);
}

.subtitle {
  font-size: 0.9rem;
  color: var(--warm-gray);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
  margin-bottom: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  margin-bottom: 1.5rem;
  animation: fadeIn 0.5s ease both;
}
.field:nth-child(1) { animation-delay: 0.1s; }
.field:nth-child(2) { animation-delay: 0.15s; }
.field:nth-child(3) { animation-delay: 0.2s; }
.field:nth-child(4) { animation-delay: 0.25s; }
.field:nth-child(5) { animation-delay: 0.3s; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.field:focus-within label {
  color: var(--rust);
}

input, select, textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border);
  padding: 0.6rem 0 0.6rem 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease;
  appearance: none;
}

input::placeholder, textarea::placeholder {
  color: #bdb2a5;
  font-weight: 300;
}

input:focus, select:focus, textarea:focus {
  border-bottom-color: var(--rust);
}

.input-wrap {
  position: relative;
}

.input-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--rust);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-wrap:focus-within::after { width: 100%; }

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238c8070' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 1.5rem;
}

textarea {
  resize: none;
  min-height: 90px;
  line-height: 1.6;
}

.char-count {
  text-align: right;
  font-size: 0.7rem;
  color: #bdb2a5;
  margin-top: 0.35rem;
  transition: color 0.2s;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.required-note {
  font-size: 0.72rem;
  color: var(--warm-gray);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 0.85rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--rust);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover::before { transform: translateX(0); }
.btn:hover { color: #fff; }

.btn span { position: relative; z-index: 1; }

.btn svg {
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease;
}
.btn:hover svg { transform: translateX(4px); }

/* Success state */
.success-msg {
  display: none;
  text-align: center;
  padding: 1.5rem 0;
}
.success-msg .checkmark {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.success-msg h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.success-msg p { color: var(--warm-gray); font-size: 0.9rem; }

@media (max-width: 480px) {
  .card { padding: 2rem 1.75rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer { flex-direction: column-reverse; align-items: flex-start; }
}
.qual-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.qual-table th, .qual-table td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.6rem;
  text-align: left;
}

.qual-table th {
  background: #f0ebe0;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--warm-gray);
}

.qual-table td:first-child {
  color: var(--ink);
  font-weight: 400;
  white-space: nowrap;
  width: 160px;
}

.qual-table input {
  border: none;
  border-bottom: none;
  padding: 0.2rem 0;
  font-size: 0.85rem;
  width: 100%;
}

.qual-table .input-wrap::after {
  display: none;
}
.add-row-btn {
  margin-top: 0.6rem;
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--warm-gray);
  padding: 0.4rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}

.add-row-btn:hover {
  border-color: var(--rust);
  color: var(--rust);
}

.remove-row {
  background: transparent;
  border: none;
  color: #bdb2a5;
  cursor: pointer;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.remove-row:hover {
  color: var(--rust);
}


.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    border-left: 3px solid var(--rust);
    padding-left: 0.75rem;
    margin: 2rem 0 1rem 0;
  }
  .radio-group label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink);
    margin-bottom: 0.2rem;
    cursor: pointer;
    font-weight: 400;
  }
  .radio-group input[type="radio"] {
    width: auto;
    border: none;
    border-bottom: none;
    padding: 0;
    margin: 0;
  }
  .radio-group input[type="radio"] {
  width: auto !important;
  border-bottom: none !important;
  appearance: auto !important;
  -webkit-appearance: radio !important;
  display: inline-block !important;
  margin: 0 4px 0 0 !important;
  padding: 0 !important;
  height: auto !important;
}

.success{
  display: flex;
  justify-content: center; /* Horizontal */
  align-items: center;    /* Vertical */
  
  
}
.sucbtn{
  margin-top: 20px;
  display: flex;
  justify-content: center; /* Horizontal */
  align-items: center;    /* Vertical */
  gap:20px
}
