/* Contact page - Custom Layout (No Bootstrap Grid) */
.contact-page {
  position: relative;
  padding: 2.5rem 1rem;
  min-height: 100vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 991.98px) {
  .contact-page {
    background-attachment: scroll;
  }
}

.contact-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.40);
  z-index: 0;
}

.contact-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-hero {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 2rem 5rem 1rem;
}

/* Page Breadcrumbs */
.page-breadcrumb {
  margin-bottom: 1rem;
}

.page-breadcrumb .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
  background: transparent;
  gap: 0.25rem;
}

.page-breadcrumb .breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.page-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}

.page-breadcrumb .breadcrumb-item a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  padding: 0 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.page-breadcrumb .breadcrumb-item i {
  font-size: 0.8rem;
}

.contact-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.contact-hero p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 1rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }
}

/* Cards */
.contact-form-card,
.contact-info-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-form-card .card-header,
.contact-info-card .card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0;
  background: none;
  border: none;
}

.contact-form-card .card-header h2,
.contact-info-card .card-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(99,102,241,0.15));
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Hide contact info on mobile */
.contact-info-card {
  display: none;
}

@media (min-width: 992px) {
  .contact-info-card {
    display: block;
  }
}

/* Contact Info List */
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-info-list .info-icon {
  color: #3b82f6;
  width: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-list .info-link {
  color: #1e293b;
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
}

.contact-info-list .info-link:hover {
  color: #3b82f6;
  text-decoration: underline;
}

.email-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #3b82f6;
  border-radius: 10px;
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.email-btn:hover {
  background: #3b82f6;
  color: #fff;
}

/* Form Layout */
.kn-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

@media (min-width: 576px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

/* Form Fields */
.kn-label {
  display: block;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.kn-input,
.kn-textarea {
  width: 100%;
  background: #fff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 16px; /* Prevent iOS zoom */
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.kn-input:focus,
.kn-textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.kn-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Checkbox */
.kn-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.kn-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kn-check-box {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid #e2e8f0;
  border-radius: 5px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 2px;
}

.kn-check-label {
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.4;
}

.kn-check input:focus + .kn-check-box {
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  border-color: #3b82f6;
}

.kn-check input:checked + .kn-check-box {
  background: #3b82f6;
  border-color: #3b82f6;
}

.kn-check input:checked + .kn-check-box::after {
  content: '✓';
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Submit Button */
.kn-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(37,99,235,0.3);
}

.kn-btn:hover {
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

.kn-btn:active {
  transform: translateY(1px);
}

/* reCAPTCHA Notice */
.recaptcha-notice {
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

.recaptcha-notice a {
  color: #64748b;
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
}

.alert ul {
  margin: 0;
  padding-left: 1.25rem;
}

/* Mobile adjustments */
@media (max-width: 575px) {
  .contact-page {
    padding: 1.5rem 0.75rem;
  }
  
  .contact-form-card,
  .contact-info-card {
    padding: 1.5rem;
  }
  
  .contact-hero h1 {
    font-size: 1.5rem;
  }
  
  .kn-btn {
    padding: 0.8rem 1rem;
  }
}