/* =====================
   GLOBAL STYLING
===================== */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  color: #202124;
  background: #ffffff;
  
  
  
}

* {
  box-sizing: border-box;
}



/* =====================
   HEADER SECTION
===================== */


.g-screen {
  text-align:left;
  padding-top: 60px; /* Google spacing */
  margin-left:9px;
  overflow:hidden ;
}

.g-center-logo {
  height: 50px;
  margin-bottom: 2px;
}

.g-title {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 2px;
}

.g-sub {
  font-size: 1.1em;
  color: #5f6368;
  line-height: 1.45;
  margin-bottom: 2px;
}

.g-link {
  color: #1a73e8;
  text-decoration: none;
  font-size: 14px;
  margin-bottom:100px!important;
}

/* =====================
   TOP LOADER
===================== */
.top-loader {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: #6c63ff;
  z-index: 9999;
  transition: width 0.3s ease;
}

.top-loader.done {
  transition: opacity 0.4s ease;
  opacity: 0;
}

/* =====================
   ERROR STATES
===================== */


input.error,
textarea.error {
  border-color: #d93025 !important;
  background: #fff7f7 !important;
  box-shadow: 0 0 0 3px rgba(217,48,37,0.1);
}

/* =====================
   SCREEN LAYOUT
===================== */
.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow:none;
}

/* =====================
   INPUT BOXES
===================== */
.input-box {
  display: flex;
  flex-direction: column;
  /* FIX GLOBAL ALIGNMENT OF ALL FORM ELEMENTS */
.input-box {
  align-items: flex-start !important;
  text-align: left !important;
}
  margin-top:30px;
  margin-bottom: 1px;
  margin-left:7px!important;
  width: 100vw;
  max-width: 340px;
  overflow-x:hidden ;
}

/* Inputs (single line) */
.input-box input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid #dadce0;
  border-radius: 6px;
  background: #fafafa;
  outline: none;
  transition: all 0.2s ease;
}

.input-box input:focus {
  border-color: #1a73e8;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

/* Textareas (multi-line) */
.input-box textarea {
  all: unset;
  display: block;
  width: 100%;
  min-height: 110px;
  font-family: 'Roboto', sans-serif;
  font-size: 15.5px;
  line-height: 1.5;
  padding: 12px 16px;
  border: 1px solid #dadce0;
  border-radius: 10px;
  background: #fafafa;
  color: #202124;
  resize: none;
  box-sizing: border-box;
 
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.input-box textarea:focus {
  border-color: #1a73e8 !important;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
  
}

.input-box textarea:hover {
  background: #ffffff;
  border-color: #c5c9d0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* =====================
   BUTTONS & NAVIGATION
===================== */
.bottom-bar {
  display: flex;
  justify-content: flex-end;
  padding: 20px;
  background: white;
  width: 100%;
  max-width: 340px;
}

.next-btn,
.prev-btn {
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 6px;
  
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-right: 10px;
  margin-bottom: 3px;
  transition: background 0.2s, box-shadow 0.2s;
}

.next-btn:hover,
.prev-btn:hover {
  background-color: #1669c1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.toggle-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.toggle-option {
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #d9d9d9;
  background: #fafafa;
  cursor: pointer;
  transition: .25s;
  font-size: 15px;
  font-weight: 500;

  /* --- LEFT ALIGN FIX --- */
  text-align: left;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.toggle-option:hover {
  border-color: #007bff;
  background: #f3f7ff;
}

.toggle-option.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
  box-shadow: 0 3px 10px rgba(0, 123, 255, 0.25);
}
.input-box label {
    margin-top:5px!important;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: .2s;
}

.radio-option:hover {
  background: #f6f6f6;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #666;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  transition: .2s;
}

.radio-option input[type="radio"]:checked + .radio-custom {
  border-color: #007bff;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
  content: "";
  width: 10px;
  height: 10px;
  background: #007bff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
}

/* LEFT ALIGN, BETTER SPACING */
.checkbox-option {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;            /* looser spacing */
  padding: 6px 4px !important;     /* breathing room */
  cursor: pointer;
  font-size: 15px;
  user-select: none;
  text-align: left !important;
}

/* hide real input */
.checkbox-option input {
  display: none !important;
}

/* CIRCLE STYLE */
.checkbox-square {
  width: 20px !important;
  height: 20px !important;
  border: 2px solid #bbb !important;
  border-radius: 50% !important;    /* ← makes it CIRCLE */
  display: inline-block !important;
  position: relative !important;
  transition: all 0.25s ease !important;
}

/* SELECTED */
.checkbox-option input:checked + .checkbox-square {
  border-color: #4A8FFF !important;
  background-color: #4A8FFF !important;
}

.checkbox-option input:checked + .checkbox-square::after {
  content: "" !important;
  position: absolute !important;
  width: 10px !important;
  height: 10px !important;
  background: #fff !important;
  border-radius: 50% !important;   /* inner circle */
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.bottom-bar {
  display: flex;
  justify-content: flex-end;
  padding: 20px;
  background: white;
  width: 100%;
  max-width: 340px;
}


.submit-btn{
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 6px;
  
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-right: 10px;
  margin-bottom: 3px;
  transition: background 0.2s, box-shadow 0.2s;
}


.submit-btn:hover {
  background-color: #1669c1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
/* Loading Overlay */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Spinner */
.loader {
  width: 45px;
  height: 45px;
  border: 5px solid #d6e4ff;
  border-top-color: #1a73e8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 12px;
  font-size: 16px;
  color: #1a73e8;
  font-weight: 600;
}

/* Show overlay */
#loadingOverlay.active {
  opacity: 1;
  pointer-events: all;
}


.thankyou-wrapper {
  max-width: 800px;
  margin: 50px auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  
  text-align: left;
  line-height: 1.7;
}

.thankyou-wrapper h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 700;
}

.return-home-btn {
  margin-top: 25px;
  padding: 12px 25px;
  background: #111827;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s ease;
}

.return-home-btn:hover {
  background: #1f2937;
}
.thankyou-wrapper {
  max-width: 800px;
  margin: 50px auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  
  text-align: left;
  line-height: 1.7;
}

.thankyou-wrapper h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 700;
}

.return-home-btn {
  margin-top: 25px;
  padding: 12px 25px;
  background: #111827;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s ease;
}

.return-home-btn:hover {
  background: #1f2937;
}
