/* =========================================================
   JAN SAMASYA
========================================================= */

.jan-samasya-page,
.jan-samasya-page *,
.jan-samasya-page *::before,
.jan-samasya-page *::after {
  box-sizing: border-box;
}

.jan-samasya-page {
  width: 100%;
  min-height: 100vh;
  background: #f7f7f7;
  padding: 40px 15px;
  overflow-x: hidden;
}

.jan-samasya-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* =========================================================
   HEADER
========================================================= */

.jan-samasya-header {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #ff8a00 0%, #ff6b00 50%, #f4511e 100%);
  color: #fff;
  padding: 42px 30px 38px;
  text-align: center;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.jan-samasya-header::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  top: -80px;
  left: -60px;
}

.jan-samasya-header::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  right: -70px;
  bottom: -130px;
}

.jan-campaign-label {
  position: relative;
  z-index: 2;
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.jan-samasya-header h1 {
  position: relative;
  z-index: 2;
  color: #fff;
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 800;
}

.jan-samasya-header p {
  position: relative;
  z-index: 2;
  color: #fff;
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
}

.jan-samasya-header span {
  position: relative;
  z-index: 2;
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================================
   FORM
========================================================= */

.jan-samasya-form {
  width: 100%;
  background: #fff;
  padding: 35px;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.jan-section {
  width: 100%;
  margin-bottom: 35px;
}

.jan-section h2 {
  color: #1f2937;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;
  margin: 0 0 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

/* =========================================================
   GRID
========================================================= */

.jan-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

.jan-col-6,
.jan-col-12 {
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
}

.jan-col-6 {
  width: 50%;
}

.jan-col-12 {
  width: 100%;
}

/* =========================================================
   INPUTS
========================================================= */

.jan-samasya-form label {
  display: block;
  max-width: 100%;
  color: #374151;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 7px;
  overflow-wrap: break-word;
}

.jan-samasya-form label span {
  color: #dc2626;
}

.jan-samasya-form input[type="text"],
.jan-samasya-form input[type="tel"],
.jan-samasya-form input[type="url"],
.jan-samasya-form input[type="file"],
.jan-samasya-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: #1f2937;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  outline: none;
}

.jan-samasya-form input:focus,
.jan-samasya-form textarea:focus {
  border-color: #ff7a00;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12);
}

.jan-samasya-form textarea {
  min-height: 130px;
  resize: vertical;
  overflow-wrap: break-word;
}

.jan-samasya-form input[type="file"] {
  padding: 10px;
}

.jan-samasya-form small {
  display: block;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 6px;
}

/* =========================================================
   VOICE
========================================================= */

.jan-voice-box {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 18px;
  margin-top: 15px;
  overflow: hidden;
}

.jan-voice-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.jan-voice-content strong {
  display: block;
  color: #1f2937;
  font-size: 15px;
}

.jan-voice-content p {
  margin: 5px 0 2px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

#janVoiceButton {
  flex-shrink: 0;
  border: 0;
  background: linear-gradient(135deg, #ff8a00, #f4511e);
  color: #fff;
  border-radius: 8px;
  padding: 12px 18px;
  min-height: 45px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

#janVoiceButton.listening {
  background: #374151;
}

#janVoiceButton:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.jan-voice-status {
  display: none;
  background: #fff7ed;
  color: #9a3412;
  padding: 12px;
  margin-top: 15px;
  border-radius: 8px;
  font-size: 13px;
}

.jan-voice-status.active {
  display: block;
}

.jan-voice-result {
  display: none;
  background: #ecfdf5;
  color: #065f46;
  padding: 12px;
  margin-top: 10px;
  border-radius: 8px;
  font-size: 13px;
}

.jan-voice-result.active {
  display: block;
}

/* =========================================================
   PHOTO
========================================================= */

.jan-photo-section {
  width: 100%;
  margin-top: 25px;
}

.jan-photo-preview {
  display: none;
  width: 100%;
  margin-top: 15px;
}

.jan-photo-preview img {
  width: 200px;
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 4px;
}

/* =========================================================
   CAMPAIGN
========================================================= */

.jan-campaign {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  border-radius: 8px;
  padding: 13px 15px;
  font-weight: 600;
}

/* =========================================================
   DECLARATION
========================================================= */

.jan-declaration {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f8fafc;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.jan-declaration input {
  flex-shrink: 0;
  margin-top: 4px;
  width: 17px;
  height: 17px;
}

.jan-declaration label {
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

/* =========================================================
   SUBMIT
========================================================= */

.jan-submit {
  width: 100%;
  text-align: center;
}

#janSubmitButton {
  width: auto;
  background: linear-gradient(135deg, #ff8a00, #f4511e);
  border: 0;
  color: #fff;
  border-radius: 8px;
  padding: 13px 45px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

#janSubmitButton:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* =========================================================
   ALERTS
========================================================= */

.jan-alert {
  max-width: 900px;
  margin: 20px auto;
  border-radius: 8px;
  padding: 15px;
  font-size: 14px;
}

.jan-alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.jan-alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.jan-alert-error ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

/* =========================================================
   LOGIN MODAL
========================================================= */

.jan-login-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.jan-login-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.jan-login-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 18px;
  padding: 35px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.jan-login-icon {
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  background: #fff7ed;
  border-radius: 50%;
  font-size: 30px;
}

.jan-login-box h2 {
  text-align: center;
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 25px;
}

.jan-login-description {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 25px;
}

.jan-login-field {
  margin-bottom: 18px;
}

.jan-login-field label {
  display: block;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}

.jan-login-field label span {
  color: #dc2626;
}

.jan-login-field input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  font-size: 16px;
  outline: none;
}

.jan-login-field input:focus {
  border-color: #ff7a00;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12);
}

.jan-password-wrapper {
  position: relative;
}

.jan-password-wrapper input {
  padding-right: 48px;
}

.jan-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

.jan-field-error {
  display: block;
  color: #dc2626;
  font-size: 12px;
  margin-top: 5px;
}

.jan-login-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff8a00, #f4511e);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.jan-login-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.jan-login-message {
  border-radius: 8px;
  padding: 11px 13px;
  margin-bottom: 15px;
  font-size: 13px;
  line-height: 1.5;
}

.jan-login-error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.jan-login-success {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

.jan-login-security {
  text-align: center;
  margin-top: 18px;
  color: #6b7280;
  font-size: 11px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
  .jan-samasya-page {
    padding: 15px 8px;
  }

  .jan-samasya-header {
    padding: 32px 20px;
  }

  .jan-samasya-header h1 {
    font-size: 29px;
  }

  .jan-samasya-form {
    padding: 25px 18px;
  }

  .jan-col-6,
  .jan-col-12 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .jan-section h2 {
    font-size: 22px;
  }

  .jan-voice-content {
    flex-direction: column;
    align-items: stretch;
  }

  #janVoiceButton {
    width: 100%;
  }

  #janSubmitButton {
    width: 100%;
    min-height: 52px;
  }

  .jan-login-box {
    padding: 25px 20px;
    max-width: 95%;
  }
}

@media (max-width: 400px) {
  .jan-samasya-page {
    padding: 10px 5px;
  }

  .jan-samasya-header {
    padding: 28px 15px;
  }

  .jan-samasya-header h1 {
    font-size: 25px;
  }

  .jan-samasya-form {
    padding: 22px 14px;
  }

  .jan-login-box {
    padding: 23px 17px;
  }
}

/* ----new one------------- */
/* =========================================================
   LOGIN OVERLAY
========================================================= */

.jan-login-wrapper {
  position: relative;

  width: 100%;
  min-height: 500px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px 20px;

  background: linear-gradient(
    rgba(255, 255, 255, 0.65),
    rgba(255, 255, 255, 0.65)
  );

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* =========================================================
   LOGIN BOX
========================================================= */

.jan-login-modal {
  width: 100%;
  max-width: 430px;

  background: #ffffff;

  padding: 35px 30px;

  border-radius: 16px;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);

  text-align: center;
}

/* Icon */

.jan-login-icon {
  width: 60px;
  height: 60px;

  margin: 0 auto 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff7ed;

  border-radius: 50%;

  font-size: 28px;
}

/* Heading */

.jan-login-modal h2 {
  margin: 0 0 8px;

  color: #1f2937;

  font-size: 25px;

  font-weight: 700;
}

/* Description */

.jan-login-modal > p {
  margin: 0 0 25px;

  color: #6b7280;

  font-size: 14px;

  line-height: 1.5;
}

/* =========================================================
   WORDPRESS LOGIN FORM
========================================================= */

#janLoginForm {
  width: 100%;

  margin: 0;

  padding: 0;

  background: transparent;

  box-shadow: none;
}

/* Login labels */

#janLoginForm label {
  display: block;

  text-align: left;

  margin-bottom: 7px;

  color: #374151;

  font-size: 14px;

  font-weight: 600;
}

/* Inputs */

#janLoginForm input[type="text"],
#janLoginForm input[type="password"] {
  width: 100%;

  min-width: 0;

  box-sizing: border-box;

  padding: 13px 14px;

  margin: 0 0 15px;

  border: 1px solid #d1d5db;

  border-radius: 9px;

  background: #ffffff;

  color: #1f2937;

  font-size: 16px;

  line-height: 1.4;

  outline: none;
}

/* Focus */

#janLoginForm input[type="text"]:focus,
#janLoginForm input[type="password"]:focus {
  border-color: #ff7a00;

  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12);
}

/* Remember */

#janLoginForm .login-remember {
  text-align: left;

  margin: 0 0 20px;
}

#janLoginForm .login-remember label {
  display: flex;

  align-items: center;

  gap: 8px;

  font-size: 13px;

  font-weight: 400;

  margin: 0;
}

#janLoginForm .login-remember input {
  width: 16px;
  height: 16px;

  margin: 0;
}

/* Login button */

#janLoginForm input[type="submit"] {
  width: 100%;

  min-height: 50px;

  padding: 13px 20px;

  border: 0;

  border-radius: 9px;

  background: linear-gradient(135deg, #ff8a00, #f4511e);

  color: #ffffff;

  font-size: 16px;

  font-weight: 700;

  cursor: pointer;

  transition: all 0.2s ease;
}

#janLoginForm input[type="submit"]:hover {
  transform: translateY(-1px);

  box-shadow: 0 6px 15px rgba(244, 81, 30, 0.25);
}

/* =========================================================
   WORDPRESS LOGIN ERROR
========================================================= */

.jan-login-modal .login-error,
.jan-login-modal .login-message {
  width: 100%;

  padding: 12px;

  margin-bottom: 18px;

  border-radius: 8px;

  font-size: 13px;

  line-height: 1.5;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
  .jan-login-wrapper {
    min-height: 450px;

    padding: 25px 12px;
  }

  .jan-login-modal {
    max-width: 100%;

    padding: 28px 20px;

    border-radius: 14px;
  }

  .jan-login-modal h2 {
    font-size: 22px;
  }

  #janLoginForm input[type="text"],
  #janLoginForm input[type="password"] {
    font-size: 16px;

    padding: 13px;
  }
}

@media (max-width: 400px) {
  .jan-login-wrapper {
    padding: 20px 8px;
  }

  .jan-login-modal {
    padding: 25px 16px;
  }
}

/* =========================================================
   FORM FIELD SPACING
========================================================= */

.jan-col-6,
.jan-col-12 {
    margin-bottom: 20px;
}

