/* KNMT Landing Page Specific Styles */

/* Override main colors for KNMT page only */
body {
  color: #1a237e;
}

.navbar-brand i {
  color: #1a237e;
}

.navbar-nav .nav-item a {
  color: #1a237e;
}

.navbar-toggler .toggler-icon {
  background-color: #1a237e;
}

.sticky .navbar .navbar-nav .nav-item a {
  color: #1a237e;
}

.sticky .navbar .navbar-toggler .toggler-icon {
  background: #1a237e;
}

section h2 {
  color: #1a237e;
}

section h3 {
  color: #1a237e;
}

.footer {
  background: #1a237e;
}


.language-selector .lang-btn.active {
  background-color: #1a237e;
}

.navbar-area.sticky .language-selector .lang-btn.active {
  background-color: #1a237e;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Partner Logos */
.partner-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  animation: fadeInScale 1s ease-out;
}

#hero-logo {
  font-size: 100px;
  color: #1a237e;
  filter: drop-shadow(0 4px 12px rgba(0, 23, 82, 0.15));
}

#knmt-logo {
  height: 62px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 23, 82, 0.15));
  animation: fadeIn 0.8s ease-out 0.3s both;
  margin-top: -10px;
}

.logo-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
}

.connector-symbol {
  font-size: 80px;
  font-weight: 300;
  color: #1a237e;
  opacity: 0.8;
  line-height: 1;
  display: inline-block;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


.partnership-badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.partnership-badge::before {
  content: '';
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, transparent, #1a237e);
  animation: expandLine 0.6s ease-out 0.5s both;
}

.partnership-badge::after {
  content: '';
  width: 40px;
  height: 2px;
  background: linear-gradient(to left, transparent, #1a237e);
  animation: expandLine 0.6s ease-out 0.5s both;
}

.partnership-text {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: #1a237e;
  text-transform: uppercase;
  position: relative;
}

.partnership-text::before {
  content: '✦';
  position: absolute;
  left: -18px;
  top: 3px;
  font-size: 18px;
  color: #FCBA04;
  animation: twinkle 2s ease-in-out infinite;
}

.partnership-text::after {
  content: '✦';
  position: absolute;
  right: -18px;
  top: 3px;
  font-size: 18px;
  color: #FCBA04;
  animation: twinkle 2s ease-in-out infinite 1s;
}

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

@keyframes expandLine {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 40px;
    opacity: 1;
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

/* About Section Styling */
.about-content {
  text-align: center;
  padding: 60px 0 120px 0;
}

.about-content h2 {
  margin-bottom: 20px;
  font-size: 42px;
}

.about-content > p {
  font-size: 20px;
  line-height: 32px;
  margin-bottom: 50px;
  color: #1a237e;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.benefit-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 23, 82, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 23, 82, 0.15);
}

.benefit-item .icon {
  font-size: 55px;
  color: #1a237e;
  margin-bottom: 20px;
}

.benefit-item h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #1a237e;
}

.benefit-item p {
  font-size: 16px;
  line-height: 24px;
  color: #555;
}

/* Signup Section */
.knmt-signup {
  background: linear-gradient(180deg, white, #f0f5ff);
  padding: 100px 0;
  font-size: 16px;
  position: relative;
}

.knmt-signup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C150,60 350,80 600,60 C850,40 1050,80 1200,0 L1200,120 L0,120 Z' fill='%23f0f5ff'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom;
  transform: translateY(-100%);
}

.signup-form-container {
  background: #fff;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 23, 82, 0.1);
}

.knmt-form {
  max-width: 100%;
}

.form-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #f0f5ff;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1a237e;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 3px solid #FCBA04;
  display: inline-block;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #1a237e;
  margin-bottom: 8px;
  font-size: 15px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: "Montserrat", Arial, sans-serif;
}

.form-control:focus {
  outline: none;
  border-color: #1a237e;
  box-shadow: 0 0 0 3px rgba(0, 23, 82, 0.1);
}

.form-control.is-invalid {
  border-color: #dc3545;
  background-color: #fff5f5;
}

.form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
  background-color: #fff;
}

.form-check .form-check-input.is-invalid {
  outline: 2px solid #dc3545;
  outline-offset: 2px;
}

.field-error {
  color: #dc3545;
  font-size: 14px;
  margin-top: 6px;
  display: block;
}

.form-check .field-error {
  margin-left: 32px;
  margin-top: 8px;
}

.form-control::placeholder {
  color: #aaa;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-text {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* Checkbox Styling */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 12px;
}

.form-check .form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 0px;
}

.form-check-label {
  cursor: pointer;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  font-weight: 400;
}

.form-check-label a {
  color: #1a237e;
  text-decoration: underline;
  font-weight: 600;
}

.form-check-label a:hover {
  color: #FCBA04;
}

/* Form Actions */
.form-actions {
  margin-top: 40px;
  text-align: center;
}

.btn-submit {
  background-color: #1a237e;
  color: #fff;
  border: none;
  padding: 16px 50px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 23, 82, 0.2);
}

.btn-submit:hover {
  background-color: #FCBA04;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(252, 186, 4, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Dynamic Locations Styling */
#locations-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
}

.location-item {
  display: flex;
  gap: 10px;
  align-items: center;
  animation: slideIn 0.3s ease-out;
}

.location-item .location-input {
  flex: 1;
}

.btn-remove-location {
  background: #dc3545;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.btn-remove-location:hover:not(:disabled) {
  background: #c82333;
  transform: scale(1.05);
}

.btn-remove-location:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-add-location {
  background: #1a237e;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-family: "Montserrat", Arial, sans-serif;
}

.btn-add-location:hover {
  background: #FCBA04;
  transform: translateY(-1px);
}

.btn-add-location svg {
  transition: transform 0.3s ease;
}

.btn-add-location:hover svg {
  transform: rotate(90deg);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Response Messages */
.response-message {
  margin-top: 30px;
  padding: 20px;
  border-radius: 10px;
  font-size: 16px;
  text-align: center;
  display: none;
  white-space: pre-line;
}

.response-message.show {
  display: block;
}

.response-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

.response-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .signup-form-container {
    padding: 30px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .partnership-text {
    font-size: 16px;
  }

  .about-content h2 {
    font-size: 32px;
  }

  .about-content > p {
    font-size: 18px;
    line-height: 28px;
  }

  .benefits {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-section h3 {
    font-size: 20px;
  }

  .btn-submit {
    width: 100%;
    padding: 14px 30px;
  }

  .partner-logos {
    gap: 5px;
  }

  i#hero-logo {
    font-size: 60px;
  }

  #knmt-logo {
    height: 45px;
  }

  .connector-symbol {
    font-size: 60px;
  }
}

@media (max-width: 480px) {
  .knmt-signup {
    padding: 60px 0;
  }

  .about-content {
    padding: 40px 0;
  }

  .form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
  }

  .partnership-badge::before,
  .partnership-badge::after {
    width: 30px;
  }

  .partnership-text {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .partnership-text::before {
    left: -14px;
  }

  .partnership-text::after {
    right: -14px;
  }

  .partner-logos {
    flex-direction: column;
    gap: 5px;
  }

  .connector-symbol {
    font-size: 70px;
  }

  i#hero-logo {
    font-size: 56px;
  }

  #knmt-logo {
    height: 40px;
    margin-top: 0px;
  }
}

/* Loading State */
.btn-submit.loading {
  position: relative;
  color: transparent;
}

.btn-submit.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Price Breakdown Section */
.discount-info {
  font-size: 16px;
  color: #1a237e;
  font-weight: 600;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(252, 186, 4, 0.1);
  border-left: 4px solid #FCBA04;
  border-radius: 4px;
}

.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 16px;
}

.price-row:last-child {
  border-bottom: none;
}

.price-row.price-total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 3px solid #FCBA04;
  font-size: 20px;
  color: #1a237e;
}

.price-row .price {
  font-weight: 600;
  color: #1a237e;
  white-space: nowrap;
}

.price-row.price-total .price strong {
  font-size: 24px;
  font-weight: 700;
}

.price-note {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
  font-style: italic;
  text-align: right;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.85em;
  margin-right: 10px;
  opacity: 0.6;
}
.member-price {
  color: #2c3e50;
  font-weight: 600;
  font-size: 1em;
}
.knmt-discount {
  color: #667eea;
  font-weight: 500;
  font-size: 0.75em;
  margin-left: 6px;
  padding: 2px 8px;
  background: #f0f3ff;
  border-radius: 4px;
}
.price-breakdown .price-row {
  align-items: center;
}
.price-breakdown .price-row .price {
  display: flex;
  align-items: center;
  gap: 0;
}

@media (max-width: 600px) {
    .water div {
        display: inline-grid;
        min-height: auto;
    }

    .water {
        background-color: rgb(210, 224, 255);
    }

    .partnership-badge {
      display: none;
    }


}