/* ============================================================
   KOMTECH WEBSITE — CONTACT US PAGE STYLES
   contact-us.css
   ============================================================ */

/* ─── TOP MAP ───────────────────────────────────────────────── */
.contact-hero-image {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.contact-map {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-map-link {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #1b3a5c;            /* steel blue, matches footer */
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  transition: background 0.2s, transform 0.15s;
}

.contact-map-link:hover {
  background: #142c46;
  transform: translateY(-1px);
}

/* ─── CONTACT SECTION ───────────────────────────────────────── */
.contact-section {
  background: var(--page-bg);
  padding: 80px 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

/* ─── CONTACT DETAILS ───────────────────────────────────────── */
.contact-details h2,
.contact-form-wrapper h2 {
  font-size: 26px;
  font-weight: 800;
  color: #1b3a5c;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-text {
  font-size: 15px;
  color: #1b3a5c;
  line-height: 1.6;
}

.contact-text strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1b3a5c;
  margin-bottom: 4px;
  font-weight: 700;
}

.contact-text a {
  color: #1e88e5;
  text-decoration: none;
  font-weight: 500;
}

.contact-text a:hover {
  text-decoration: underline;
}

.whatsapp-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 20px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(37,211,102,0.25);
}

.whatsapp-contact-btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

/* ─── CONTACT FORM ──────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

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

.form-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 22px 0 8px;
  font-size: 16px;
  color: #1b3a5c;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
  order: 2;
}

.form-field textarea {
  resize: vertical;
  min-height: 60px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom-color: #1e88e5;
}

.form-field label {
  position: absolute;
  top: 22px;
  left: 0;
  font-size: 14px;
  color: #1b3a5c;
  pointer-events: none;
  transition: all 0.2s ease;
  order: 1;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field input:valid + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label,
.form-field select:focus + label,
.form-field select:valid + label {
  top: 0;
  font-size: 12px;
  color: #1e88e5;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-field .select-label {
  top: 0;
  font-size: 12px;
  color: #1e88e5;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.req {
  color: #e53935;
  margin-left: 2px;
}

/* ─── FILE UPLOAD ───────────────────────────────────────────── */
.file-upload-section {
  margin-top: 10px;
}

.file-upload-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e88e5;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.file-upload-note {
  font-size: 14px;
  color: #1b3a5c;
  margin-bottom: 12px;
}

input[type="file"] {
  font-size: 14px;
  color: #1b3a5c;
}

input[type="file"]::file-selector-button {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  margin-right: 12px;
  font-family: inherit;
  transition: background 0.2s;
}

input[type="file"]::file-selector-button:hover {
  background: #eee;
}

/* ─── CONSENT ───────────────────────────────────────────────── */
.consent-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #1b3a5c;
  line-height: 1.5;
  cursor: pointer;
  margin-bottom: 12px;
}

.consent-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: #1e88e5;
}

.consent-note {
  font-size: 13px;
  color: #1b3a5c;
  line-height: 1.6;
  margin-bottom: 6px;
  margin-left: 26px;
}

.consent-note a {
  color: #1e88e5;
  text-decoration: underline;
}

.required-note {
  font-size: 13px;
  color: #1b3a5c;
  margin-top: 12px;
  margin-left: 26px;
}

/* ─── SEND BUTTON ───────────────────────────────────────────── */
.send-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1e88e5;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: fit-content;
  transition: background 0.2s, transform 0.15s;
  margin-top: 10px;
}

.send-btn:hover {
  background: #1565c0;
  transform: translateY(-2px);
}

.send-btn .arrow {
  font-size: 18px;
  transition: transform 0.2s;
}

.send-btn:hover .arrow {
  transform: translateX(4px);
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .contact-section { padding: 40px 20px; }
  .contact-hero-image { height: 220px; }
}
