/* ===================================== 
   Astro Numerology Form Styles
   ===================================== */

/* Form wrapper */
.nr-form {
  max-width: 420px;
  margin: 0 auto;
  background: #faf9f6;
  border: 1px solid #e2d9c5;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  font-family: 'Poppins', sans-serif;
}

/* Field blocks */
.nr-form .field {
  margin-bottom: 14px;
}

.nr-form label {
  display: block;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  font-size: 14px;
}

/* Inputs */
.nr-form input[type="text"],
.nr-form input[type="date"],
.nr-form input[type="number"],
.nr-form select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d6dce0;
  border-radius: 5px;
  background: #fff;
  transition: all 0.2s ease;
  font-size: 14px;
}

.nr-form input:focus,
.nr-form select:focus {
  border-color: #c3a33f;
  box-shadow: 0 0 4px rgba(195, 163, 63, 0.4);
  outline: none;
}

/* DOB row - astro boxes */
.nr-dob-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.nr-dob-row .dob-box {
  flex: 1;
  text-align: center;
}

.nr-dob-row .dob-box select,
.nr-dob-row .dob-box input {
  text-align: center;
}

/* Button */
/* Button - Base Styles (Color defined by specific form class) */
.nr-form .submit {
  /* background: defined in specific classes below */
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.nr-form .submit:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Notes and errors */
.nr-form .note {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
}

.nr-error {
  color: #b00020;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

/* Astro theme flair */
.nr-form {
  background: #fffef8;
  background-image: radial-gradient(circle at 10% 10%, #fffbe2 0%, transparent 25%), radial-gradient(circle at 90% 90%, #fff1d6 0%, transparent 25%);
}

.nr-form h3 {
  text-align: center;
  color: #b58b2a;
  margin-bottom: 10px;
  font-family: 'Georgia', serif;
  font-size: 18px;
}

/* Small enhancements for mobile */
@media (max-width: 500px) {
  .nr-dob-row {
    flex-direction: column;
  }
}

/* Gold button with black text */
/* Specific overrides for Numerology form buttons */
/* Specific overrides for Numerology form buttons - SIMPLIFIED */
/* Using form-level specific classes to prevent conflicts */

/* PAID FORM BUTTON (Blue) */
.nr-form.nr-form-paid .submit {
  background: #2271b1 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 5px !important;
  padding: 10px 18px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  width: 100% !important;
  text-align: center !important;
}

/* FREE FORM BUTTON (Gold) */
.nr-form.nr-form-free .submit {
  background: linear-gradient(135deg, #e2c151, #c8a033) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 5px !important;
  padding: 10px 18px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  width: 100% !important;
  text-align: center !important;
}

/* Hover States */
.nr-form.nr-form-paid .submit:hover {
  background: #135e96 !important;
}

.nr-form.nr-form-free .submit:hover {
  background: linear-gradient(135deg, #d4b43e, #b98e22) !important;
}

/* ===================================== 
   Vedic Astrology Fields
   ===================================== */

/* Time of Birth field */
.nr-form input[type="time"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d6dce0;
  border-radius: 5px;
  background: #fff;
  transition: all 0.2s ease;
  font-size: 14px;
}

.nr-form input[type="time"]:focus {
  border-color: #c3a33f;
  box-shadow: 0 0 4px rgba(195, 163, 63, 0.4);
  outline: none;
}

/* Place of Birth autocomplete */
.nr-place-wrapper {
  position: relative;
}

.nr-place-wrapper input[type="text"] {
  width: 100%;
  padding: 8px 10px 8px 30px;
  border: 1px solid #d6dce0;
  border-radius: 5px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 8px center;
  background-size: 14px;
  transition: all 0.2s ease;
  font-size: 14px;
}

.nr-place-wrapper input[type="text"]:focus {
  border-color: #c3a33f;
  box-shadow: 0 0 4px rgba(195, 163, 63, 0.4);
  outline: none;
}

/* Suggestions dropdown */
.nr-place-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid #d6dce0;
  border-top: none;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  max-height: 220px;
  overflow-y: auto;
}

.nr-place-item {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s ease;
}

.nr-place-item:last-child {
  border-bottom: none;
}

.nr-place-item:hover,
.nr-place-item.active {
  background: #fff8e1;
  color: #b58b2a;
}

.nr-place-item.nr-loading {
  color: #999;
  font-style: italic;
  cursor: default;
}

.nr-place-item.nr-no-result {
  color: #999;
  font-style: italic;
  cursor: default;
}

/* Timezone display */
.nr-tz-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: #888;
}

.nr-tz-info span {
  color: #666;
  font-weight: 600;
}

/* Coordinate display */
.nr-coords {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  font-size: 11px;
  color: #aaa;
}

.nr-coords span {
  background: #f7f7f7;
  padding: 2px 6px;
  border-radius: 3px;
}

/* Section divider */
.nr-section-divider {
  text-align: center;
  margin: 14px 0 10px 0;
  color: #c3a33f;
  font-weight: 600;
  font-size: 13px;
  position: relative;
}

.nr-section-divider::before,
.nr-section-divider::after {
  content: '';
  display: inline-block;
  width: 30%;
  height: 1px;
  background: #e2d9c5;
  vertical-align: middle;
  margin: 0 8px;
}

/* =====================================
   Vastu Shastra Form Fields
   ===================================== */

/* Direction select dropdowns */
.nr-direction-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d6dce0;
  border-radius: 5px;
  background: #fff;
  transition: all 0.2s ease;
  font-size: 14px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.nr-direction-select:focus {
  border-color: #c3a33f;
  box-shadow: 0 0 4px rgba(195, 163, 63, 0.4);
  outline: none;
}

/* Vastu 2-column grid for room directions */
.nr-vastu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

@media (max-width: 600px) {
  .nr-vastu-grid {
    grid-template-columns: 1fr;
  }
}

.nr-vastu-grid p {
  margin: 4px 0;
}

.nr-vastu-grid label {
  font-size: 13px;
}

/* Note style for field hints */
.nr-form .note {
  display: block;
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}