/* ===============================
   KONTAKT + KART (2 KOLONNER)
   =============================== */
section.grid-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.map {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.image-card {
  padding: 0;
  overflow: hidden;
}

.image-card img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
}

/* ===============================
   KONTAKTSKJEMA
   =============================== */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form button {
  margin-top: 0.5rem;
  padding: 0.9rem;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form button:hover {
  background: #1f5f5b;
}

.contact-form button:disabled {
  background: #9bb8a3;
  cursor: not-allowed;
  opacity: 0.8;
}

/* ===============================
   FORM SUCCESS & ERROR
   =============================== */
.form-success {
  background: #e6f6f2;
  border: 1px solid #2B7A78;
  color: #1f5f5b;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  display: inline-block;
  word-wrap: break-word;
}

.form-error {
  background: #fdecec;
  border: 1px solid #d9534f;
  color: #842029;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  display: none;
  word-wrap: break-word;
}

/* ===============================
   PRIVACY CONSENT
   =============================== */
.privacy-consent {
  display: flex;
  align-items: flex-start;  /* løfter alt litt opp i forhold til checkbox */
  gap: 1rem;                /* mellomrom mellom checkbox og label */
  flex-wrap: wrap;
}

.privacy-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.privacy-consent label {
  cursor: pointer;
  line-height: 1.4;
  white-space: normal;
  margin: 0;
  flex: 1;                    
  transform: translateY(-2px);  /* løfter teksten opp */
}

/* Personvern-knappen på samme linje */
.privacy-consent .info-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;  /* legger til mer luft rundt teksten */
  border-radius: 6px;       /* rund kant for det grønne feltet */
  border: none;
  background: var(--accent); /* gjør bakgrunnen grønn */
  font-size: 0.9rem;
  color: white;              /* standard hvit tekst */
  transform: translateY(-14px);  /* beholder høyden */
}

.privacy-consent .info-btn:hover {
  background: #1f5f5b;  /* mørkere grønn på hover */
  color: white;         /* beholder hvit tekst */
}

.info-icon {
  width: 32px;
  height: 32px;
  display: block;
  pointer-events: none;
  fill: currentColor;   /* legger til denne linjen */
}

/* Personvern-info under linjen */
.privacy-info {
  display: none;
  width: 100%;
  background: #f5f5f5;
  border: 1px solid #ccc;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.privacy-info.show {
  display: block;
}

/* ===============================
   PERSONVERN MODAL
   =============================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: #fff;
  max-width: 420px;
  width: 90%;
  padding: 1.5rem;
  border-radius: 14px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  text-align: center;
}

.modal h2 {
  margin-top: 0;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===============================
   MEDIA QUERIES
   =============================== */
@media (max-width: 768px) {
  .container {
    padding-left: 0.06rem;
    padding-right: 0.06rem;
  }
}

@media (max-width: 480px) {
  .privacy-consent {
    flex-direction: column;
    align-items: flex-start;
  }

  .privacy-consent .info-btn {
    margin-top: 0.3rem;
  }
}

/* FOOTER: juster innholdet */
footer .container {
  padding-left: 1rem;
  padding-right: 1rem;
}
