/* main.css – Fælles stil for MailPro.dk og undersider
   Version: 2025-06-19
   Copyright © 2025 BIT_on_Tech™ • Simplified Tech of Tomorrow • All rights reserved • bitveil.dk
*/

/* =======================================================
   RESET & BASE
   ======================================================= */

*, *:before, *:after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #0b0c10;
  color: #ddd;
}

a { color: #66fcf1; text-decoration: none; }

header, footer { text-align: center; padding: 2rem; }

h1 { font-size: 3rem; margin: 0.5em 0; }

p { font-size: 1.2rem; max-width: 7680px; margin: 0 auto; }

.logo { font-size: 1.2rem; letter-spacing: 2px; color: #66fcf1; }

.logo img { height: 64px; display: block; }


/* =======================================================
   HERO
   ======================================================= */

.hero {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 100vh; text-align: center;
  background: linear-gradient(rgba(11,12,16,0.7), rgba(11,12,16,0.9)),
    url('https://source.unsplash.com/1600x900/?technology,mail,server') center/cover no-repeat;
}

.hero h1 { color: #009da6; text-shadow: 2px 2px 4px #000; }

.hero p { color: #c5c6c7; }

.hero nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 0.4rem;
  max-width: 800px;
  margin-top: 1.6rem;
  margin-bottom: 0.4rem;
  justify-content: center;
}


/* =======================================================
   NAVIGATION
   ======================================================= */

nav { text-align: center; margin: 0.8rem 0; }

nav a { margin: 0.8em; color: #66fcf1; font-weight: bold; }

nav a:hover { text-decoration: underline; }


/* =======================================================
   BUTTONS
   ======================================================= */

.btn {
  display: inline-block;
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  padding: 1rem 2rem; /* større hitbox */
  background: #66fcf1;
  color: #0b0c10;
  border: none;
  border-radius: 7px;
  font-weight: 700; /* endnu tungere skrift */
  letter-spacing: 0.5px;
  cursor: pointer;
  font-size: 1.15rem; /* lidt større for CTA-følelse */
  transition: background 0.25s, transform 0.1s;
}

.btn:hover {
  background: #45a29e;
  transform: translateY(-2px); /* lille løft-effekt for "klik mig!" */
}

.btn-secondary {
  background: transparent;
  color: #66fcf1;
  border: 2px solid #66fcf1;
  font-weight: bold;
  padding: 0.8rem 1.8rem;
  border-radius: 7px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #45a29e;
  color: #0b0c10;
}


.btn-main {
  display: inline-block;
  background: #66fcf1;
  color: #0b0c10;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.14rem;
  padding: 0.9em 2em;
  margin: 2.1em 0 0.8em 0;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-main:hover { background: #45a29e; }


/* =======================================================
   GENERAL LAYOUT
   ======================================================= */

section { padding: 1rem 2rem; text-align: center; }

footer { background: #1f2833; font-size: 0.9rem; color: #888; }

.container {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
}


/* =======================================================
   FEATURES
   ======================================================= */

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: center;
}

.feature {
  background: #1f2833;
  padding: 0.4rem 0.4rem 1.6rem;
  border-radius: 8px;
  flex: 1 1 48%;
  max-width: 48%;
  min-width: 280px;
  box-sizing: border-box;
}

.features > .feature:only-child,
.features > .feature:last-child:nth-child(odd) {
  flex-basis: 98%;
  max-width: 100%;
}

.feature-wrap {
  background: #1f2833;
  padding: 0.4rem 0.4rem;
  margin: 0.4rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px #0005;
}

.feature-wrap h2 {
  color: #66fcf1;
  margin-bottom: 1rem;
}


/* =======================================================
   FORMS & INPUTS
   ======================================================= */

form { display: flex; flex-direction: column; max-width: 500px; margin: 2rem auto; }

input, textarea { margin: 0.5rem 0; padding: 0.8rem; border: none; border-radius: 4px; }

input[type="submit"] {
  background: #66fcf1; color: #0b0c10; font-weight: bold;
  cursor: pointer; transition: background 0.3s;
}

input[type="submit"]:hover { background: #45a29e; }


/* =======================================================
   MAIL CHECK FORM
   ======================================================= */

.mail-check-form {
  max-width: 500px;
  margin: 1.6rem auto 2.4rem auto;
  text-align: center;
}

.mail-row {
  display: flex;
  gap: 0.5em;
  justify-content: center;
  margin-bottom: 1.35em;
}

.mail-row > div {
  flex: 1 1 0;
  min-width: 0;
  max-width: 240px;
  display: flex;
  flex-direction: column;
}

.mail-row label {
  color: #c5f9f7;
  font-weight: 600;
  margin-bottom: 0.2em;
  font-size: 1rem;
  text-align: left;
  letter-spacing: 0.3px;
  min-height: 1.2em;
  margin-left: 0.2em;
}

.field-wrap { display: flex; align-items: center; width: 100%; }

.mail-row input[type="text"] {
  padding: 0.7em 0.7em;
  font-size: 1.12rem;
  border-radius: 8px;
  border: none;
  background: #222931;
  color: #fff;
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  text-align: right;
}

.dropdown-prefix {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  height: 60px;
}

.dropdown-prefix .at-sign {
  position: absolute;
  left: 16px;
  color: #66fcf1;
  font-size: 1.23rem;
  font-weight: bold;
  pointer-events: none;
  z-index: 2;
}

.dropdown-prefix select {
  padding-left: 2.3em !important;
  background: #222931;
  color: #fff;
  border: none;
  font-size: 1.12rem;
  border-radius: 8px;
  height: 44px;
  width: 100%;
  appearance: none;
  outline: none;
  z-index: 1;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' fill='white' viewBox='0 0 20 20'%3E%3Cpath d='M5.23 7.21a1 1 0 0 1 1.42 0L10 10.59l3.35-3.38a1 1 0 1 1 1.42 1.42l-4.06 4.06a1 1 0 0 1-1.42 0L5.23 8.63a1 1 0 0 1 0-1.42z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7em center;
  background-size: 1.1em;
}

.mail-check-btn.btn {
  display: block;
  width: 100%;
  margin: 0 auto;
  padding: 1em 0;
  background: #66fcf1;
  color: #0b0c10;
  font-size: 1.18rem;
  font-weight: bold;
  border-radius: 7px;
  border: none;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 0.7em;
}

.mail-check-btn.btn:hover { background: #45a29e; }

.success-msg {
  color: #66fcf1;
  font-size: 1.19rem;
  margin: 1.3rem auto 0.9rem auto;
  text-align: center;
  font-weight: bold;
  letter-spacing: 0.5px;
}


/* =======================================================
   OPTION SELECTOR
   ======================================================= */

.option-section { max-width: 400px; margin: 0 auto; }

.two-cols-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 0 0.8em;
  width: 100%;
}

.two-cols-options > div {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.radio-btn.small-radio {
  font-size: 1em;
  margin-bottom: 0.06em;
  padding: 0.09em 0.4em 0.08em 0.2em;
  border-radius: 22px;
  border: 1px solid #;
  display: flex;
  align-items: center;
  background: #101214;
  transition: background 0.13s;
}

.radio-btn.small-radio input[type="radio"] { accent-color: #009da6; margin-right: 0.38em; }

.radio-btn.small-radio input[type="radio"]:checked + span { font-weight: bold; color: #fff; }

.radio-btn.small-radio span { padding-left: 0.05em; padding-right: 0.08em; }

.option-label {
  color: #66fcf1;
  font-size: 0.98em;
  margin-bottom: 0.1em;
  font-weight: 500;
}

.price-info {
  font-size: 1.13em;
  color: #009da6;
  font-weight: bold;
  letter-spacing: 0.01em;
}


/* =======================================================
   FAQ & TABLE
   ======================================================= */

section.feature {
  background: #1f2833;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px #0005;
}

section.feature h2 {
  color: #66fcf1;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

th, td {
  text-align: left;
  padding: 0.7em;
}

th { color: #c5c6c7; }

td { color: #ddd; }

.faq-list {
  list-style: none;
  padding: 0; margin: 0;
}

.faq-list li {
  background: #161616;
  margin: 1em 0;
  border-radius: 8px;
  overflow: hidden;
}

.faq-q {
  cursor: pointer;
  font-weight: bold;
  padding: 1em 1.2em;
  color: #66fcf1;
  display: flex;
  justify-content: space-between;
  background: #161616;
}

.faq-q:after { content: "›"; transition: 0.8s; }

.faq-q.open:after { transform: rotate(90deg); }

.faq-a {
  display: none;
  padding: 1em 1.8em 1.5em;
  color: #ddd;
  background: #242424;
}

.faq-q.open + .faq-a { display: block; }

.copy-btn {
  background: #66fcf1;
  border: none;
  border-radius: 4px;
  color: #0b0c10;
  font-weight: bold;
  cursor: pointer;
  padding: 0.3em 1em;
  margin-left: 0.5em;
}

.copy-btn:hover { background: #45a29e; }


/* =======================================================
   COMPLETE WRAP
   ======================================================= */

.complete-wrap {
  max-width: 500px;
  margin: 2.4rem auto 5.2rem auto;
  background: #1f2833;
  border-radius: 14px;
  padding: 2.2em 2em;
  box-shadow: 0 4px 18px 0 #0008;
  text-align: center;
}

.complete-wrap h2 {
  color: #66fcf1;
  margin-bottom: 0.7em;
  font-size: 2.1rem;
  letter-spacing: 0.5px;
}

.complete-wrap p {
  color: #e6e6e6;
  font-size: 1.17rem;
  margin: 1.2em 0 0.6em 0;
  line-height: 1.6;
}

.complete-cred {
  background: #222931;
  color: #66fcf1;
  font-family: "Consolas", "Menlo", monospace;
  font-size: 1.08rem;
  padding: 0.7em 1em;
  border-radius: 6px;
  margin: 1.1em auto 1.2em auto;
  text-align: center;
  max-width: 500px;
  word-break: break-all;
}

.complete-footer {
  color: #888;
  font-size: 0.97rem;
  margin-top: 3.1em;
  text-align: center;
}

/* =======================================================
   TRUST BADGES
   ======================================================= */

.trust-badges img {
  max-width: 60px;
  height: auto;
  margin-bottom: 0.5rem;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-items: center; /* centrér ALT inde i cellen */
  margin: 2rem auto;
}

.trust-badges .badge {
  text-align: center;
}

.trust-badges span {
  display: block; /* sikrer linjeskift og korrekt centring */
  font-size: 0.9rem;
  color: #009da6;
}
@media (min-width: 600px) {
  .trust-badges {
    grid-template-columns: repeat(4, auto);
  }
}



/* =======================================================
   MEDIA QUERIES
   ======================================================= */

@media (max-width: 900px) {
  section { padding: 0.5rem 0.5rem; }
  .features {
    flex-direction: column;
    gap: 1rem;
    max-width: 96vw;
    width: 96vw;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  .feature {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
}

@media (max-width: 600px) {
  .hero nav { grid-template-columns: 1fr; }
  .hero nav a.btn { width: 88vw; justify-self: center; }
  .features > .feature:only-child,
  .features > .feature:last-child:nth-child(odd) {
    flex-basis: 96% !important;
    max-width: 100% !important;
  }
  .mail-check-form { max-width: 99vw; }
  .mail-row { flex-direction: column; gap: 0.7em; align-items: stretch; }
  .mail-row > div { width: 100%; max-width: 100%; }
  .field-wrap, .dropdown-prefix { width: 100%; height: 52px; }
  .mail-row input[type="text"], .dropdown-prefix select {
    width: 100%; font-size: 1.11rem; height: 44px;
  }
  .complete-wrap { max-width: 99vw; padding: 1.3em 0.2em; }
  .complete-cred { max-width: 99vw; padding: 0.7em 0.4em; }
}

