/* =========================
   BASE
========================= */

body {
    background: #e9eae8;
    margin: 0;
    font-family: Arial, sans-serif;
    color: #212422;
    line-height: 1.6;
}

/* =========================
   HEADER
========================= */
.hero-header {
    position: relative;
    width: 100%;
    height: 375px;
    background: #333;
}

.hero-header .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 85%;
    opacity: 0.8;
}

.form-header {
    padding: 20px;
}

.back-link {
    text-decoration: none;
    color: #0a5c36;
    font-weight: 600;
}

/* =========================
   LAYOUT GENERAL
========================= */

.form-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* =========================
   COLUMNA FORM
========================= */

.form-col {
    flex: 2;
}

.form-col h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.subtitle {
    margin-bottom: 25px;
    opacity: 0.8;
}

/* =========================
   FORM
========================= */

form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 600px;
    padding-top: 10px;
    border-top: 1px solid #ccc;
}

input,
select,
textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    background: #fff;
}

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

/* =========================
   CUPS HELP
========================= */

.cups-help {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: -10px;
    margin-bottom: 10px;
}

/* =========================
   LEGAL
========================= */

.legal {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

/* =========================
   BOTÓ
========================= */

button {
    background: #0077ff;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background: #064d2c;
}

/* =========================
   NOTE FINAL
========================= */

.note {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* =========================
   COLUMNA INFO
========================= */

.info-col {
    flex: 1;
    padding-top: 10px;
}

.info-col h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.info-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-col li {
    margin-bottom: 10px;
    padding-left: 18px;
    position: relative;
}

.info-col li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #0a5c36;
}

/* =========================
   IMATGE
========================= */

.info-image {
    margin-top: 30px;
}

.info-image img {
    background: transparent;
    width: 100%;
    height: auto;
    border-radius: 8px;
     display: block; 
    opacity: 0.9;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .form-wrapper {
        flex-direction: column;
    }

    .info-col {
        order: -1;
    }
}

/* =========================
   POUP LEGALS
========================= */

.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; 
}

.popup.hidden {
  display: none;
}

.popup-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  text-align: center;
}

/* POPUP D'AGRAÏMENT */
#thankyouPopup .popup-content {
  position: relative;
  padding: 2rem;
  max-width: 450px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

.close-btn:hover {
  color: #000;
}

.hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 0 !important;
  overflow: hidden !important;
}


