/*
Theme Name: Elorn GLS
Author: This is Fever
Version: 1.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

/* Reset */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: "Newson GLS", sans-serif;
}

* {
  margin: 0;
}

/* Root Colors */
:root {
  --cobalt: #061ab1;
  --sunflower: #ffd100;
  --ink: #1d242d;
  --smoke: #9ea0a4;
  --linen: #f6f5ee;
}

/* Colors */
.bg-cobalt {
  background-color: #061ab1;
}
.text-cobalt {
  color: #061ab1;
}
.bg-sunflower {
  background-color: #ffd100;
}
.text-sunflower {
  color: #ffd100;
}
.bg-ink {
  background-color: #1d242d;
}
.text-ink {
  color: #1d242d;
}
.bg-smoke {
  background-color: #9ea0a4;
}
.text-smoke {
  color: #9ea0a4;
}
.bg-linen {
  background-color: #f6f5ee;
}
.text-linen {
  color: #f6f5ee;
}

/* Fonts */
@font-face {
  font-family: "Newson GLS";
  src: url("./fonts/NewsonGLS-Italic.woff2") format("woff2"),
    url("./fonts/NewsonGLS-Italic.woff") format("woff"),
    url("./fonts/NewsonGLS-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Newson GLS";
  src: url("./fonts/NewsonGLS-BoldItalic.woff2") format("woff2"),
    url("./fonts/NewsonGLS-BoldItalic.woff") format("woff"),
    url("./fonts/NewsonGLS-BoldItalic.ttf") format("truetype");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Newson GLS";
  src: url("./fonts/NewsonGLS-Bold.woff2") format("woff2"),
    url("./fonts/NewsonGLS-Bold.woff") format("woff"),
    url("./fonts/NewsonGLS-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newson GLS";
  src: url("./fonts/NewsonGLS-Light.woff2") format("woff2"),
    url("./fonts/NewsonGLS-Light.woff") format("woff"),
    url("./fonts/NewsonGLS-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newson GLS";
  src: url("./fonts/NewsonGLS-Regular.woff2") format("woff2"),
    url("./fonts/NewsonGLS-Regular.woff") format("woff"),
    url("./fonts/NewsonGLS-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newson GLS";
  src: url("./fonts/NewsonGLS-LightItalic.woff2") format("woff2"),
    url("./fonts/NewsonGLS-LightItalic.woff") format("woff"),
    url("./fonts/NewsonGLS-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Padding */
.py-sm {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.py-md {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.py-lg {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.px-sm {
  padding-left: 2rem;
  padding-right: 2rem;
}
.px-md {
  padding-left: 4rem;
  padding-right: 4rem;
}
.px-lg {
  padding-left: 6rem;
  padding-right: 6rem;
}

/* Utilities */
.container {
  width: auto;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem /* 16px */;
  padding-left: 1rem /* 16px */;
}
@media (min-width: 640px) {
  .container {
    max-width: 640px;
    padding-right: 2rem /* 32px */;
    padding-left: 2rem /* 32px */;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}
.hidden {
  display: none !important;
}
.flex {
  display: flex;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.relative {
  position: relative;
}

.mr-2 {
  margin-right: 0.5rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.bg-white {
  background-color: white;
}

.max-w-screen-lg {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
}

.gap-4 {
  gap: 1rem;
}

/* Buttons */
.header-button {
  background-color: var(--sunflower);
  display: flex;
  align-items: center;
  padding: 1rem;
  border-top-left-radius: 9999px;
  border-bottom-left-radius: 9999px;
  color: black;
  font-size: 0.875rem;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
}

/* Media query for large screens (lg breakpoint in Tailwind is 1024px) */
@media (max-width: 1024px) {
  .header-button {
    position: static;
    top: auto;
    transform: none;
    right: auto;
  }
}

/* Typography */
.wysiwyg h1,
.wysiwyg h2,
.wysiwyg h3,
.wysiwyg h4,
.wysiwyg h5,
.wysiwyg h6 {
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.wysiwyg h1 {
  font-size: 2.25rem; /* text-4xl */
}

.wysiwyg h2 {
  font-size: 1.875rem; /* text-3xl */
  margin-top: 1rem;
}

.wysiwyg h3 {
  font-size: 1.5rem; /* text-2xl */
  margin-top: 1rem;
}

.wysiwyg h4 {
  font-size: 1.25rem; /* text-xl */
  margin-top: 1rem;
}

.wysiwyg h5 {
  font-size: 1.125rem; /* text-lg */
  margin-top: 1rem;
}

.wysiwyg h6 {
  font-size: 1rem; /* text-base */
  margin-top: 1rem;
}

/* Remove top margin for first heading */
.wysiwyg h2:first-child,
.wysiwyg h3:first-child,
.wysiwyg h4:first-child,
.wysiwyg h5:first-child,
.wysiwyg h6:first-child {
  margin-top: 0;
}

/* Larger sizes for lg screens */
@media (min-width: 1024px) {
  .wysiwyg h1 {
    font-size: 3rem; /* text-5xl */
  }

  .wysiwyg h2 {
    font-size: 2.25rem; /* text-4xl */
  }

  .wysiwyg h3 {
    font-size: 1.875rem; /* text-3xl */
  }

  .wysiwyg h4 {
    font-size: 1.5rem; /* text-2xl */
  }

  .wysiwyg h5 {
    font-size: 1.25rem; /* text-xl */
  }

  .wysiwyg h6 {
    font-size: 1.125rem; /* text-lg */
  }
}

/* Lists */
.wysiwyg ul,
.wysiwyg ol {
  list-style-position: outside;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* List items */
.wysiwyg li {
  padding-left: 0.125rem;
}

.wysiwyg li strong {
  font-weight: bold;
}

/* Unordered list */
.wysiwyg ul {
  list-style-type: disc;
}

/* Ordered list */
.wysiwyg ol {
  list-style-type: decimal;
}

/* Links */
.wysiwyg a {
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

/* Paragraphs */
.wysiwyg p {
  margin-top: 1rem;
  line-height: 24px;
}

/* Remove top margin for the first paragraph */
.wysiwyg p:first-of-type {
  margin-top: 0;
}

/* Strong inside paragraphs */
.wysiwyg p strong {
  font-weight: bold;
  color: var(--cobalt);
}

/* Alternate wysiwyg style */
.wysiwyg-alt p > strong {
  color: white;
}

/* Header */
.header {
  @media (max-width: 1024px) {
    justify-content: space-between;
    align-items: center;
  }

  a {
    display: flex;
    align-items: center;
  }
}
.header-logo {
  @media (max-width: 1024px) {
    padding-left: 1rem;
    width: 80%;
  }
}

/* Image & Text Hero */
.custom-section {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.75rem;
  background-color: var(--cobalt);
  margin-bottom: -70px;

  @media (max-width: 1024px) {
    margin-bottom: 0;
  }
}

/* Adjust margin if secondary image is present */
.custom-section.has-secondary-image {
  margin-bottom: 0;
}

/* Image container for desktop */
.image-container {
  grid-column: span 6;
  display: none;
}

.image-container img {
  width: 91.6667%; /* Equivalent to Tailwind's w-11/12 */
  max-height: 500px;
  object-fit: cover;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.main-image {
  aspect-ratio: 1/1;
}

.secondary-image {
  width: 100%;
  max-width: 476px;
  object-fit: cover;
  border-radius: 10px;
  margin-left: auto;
  margin-top: 2.5rem;
  margin-right: 1.5rem;
  display: block;
}

/* Content container */
.content-container {
  grid-column: span 6;
  display: flex;
  color: white;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  align-items: center;
}

/* Content wrapper */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 10;

  @media (max-width: 1024px) {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }
}

.content-wrapper h1 {
  font-size: 40px;
  font-weight: bold;
  line-height: 44px;
  width: 55%;
  margin: 0;

  @media (max-width: 1024px) {
    width: 100%;
  }
}

.text-content {
  width: 66.666667%;

  @media (max-width: 1024px) {
    width: auto;
  }
}

/* Button styling */
.btn {
  background-color: #ffc107; /* Sunflower colour */
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  border-radius: 9999px;
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1;
  color: black;
  text-decoration: none;
}

/* Mobile image */
.mobile-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay for mobile */
.mobile-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 5;
}

/* Large screen adjustments */
@media (min-width: 1024px) {
  .custom-section {
    grid-template-columns: repeat(12, 1fr);
  }

  .image-container {
    display: block;
    grid-column: span 6;
  }

  .content-container {
    padding: 0;
    align-items: flex-start;
  }

  .content-wrapper {
    padding-top: 2rem;
  }

  .content-wrapper h1 {
    width: 55%;
  }

  .mobile-image,
  .mobile-overlay {
    display: none;
  }
}

/* CTA */
.cta-container {
  padding-top: 1.5rem;

  @media (max-width: 1024px) {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: auto;
  }
}

.cta-wrapper {
  background-color: white;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 24px;
  padding-bottom: 30px;
  color: var(--ink);
  gap: 1rem;
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.15);

  h3 {
    margin: 0;
    font-size: 20px;
  }
}

/* Image CTA */
.image-cta-container {
  padding-bottom: 6rem;
  padding-top: 1.5rem;

  @media (max-width: 1024px) {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.image-cta-wrapper {
  background: white;
  display: flex;
  border-radius: 10px;
  gap: 1rem;
  overflow: hidden;
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.15);
}

.image-cta-text {
  width: 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding-left: 30px;
  padding-right: 30px;
  padding-bottom: 30px;
  padding-top: 1.5rem;

  @media (max-width: 1024px) {
    width: 100%;
  }

  h3 {
    margin: 0;
    font-size: 20px;
  }
}

.image-cta-image {
  width: 50%;
  position: relative;

  @media (max-width: 1024px) {
    display: none;
  }

  img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* Parcel Details */
.bg-gradient {
  background: linear-gradient(180deg, #061ab1 90%, #fff 10%);
}
.details-container {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;

  @media (max-width: 1024px) {
    flex-direction: column;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.details-terms {
  gap: 1.5rem;
  align-self: flex-start;
  margin-top: auto;

  h3 {
    margin: 0;
    font-size: 20px;
  }
}

.details-wrapper {
  width: 50%;
  background-color: white;
  border-radius: 10px;
  padding-left: 30px;
  padding-right: 30px;
  padding-bottom: 30px;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  @media (max-width: 1024px) {
    width: auto;
  }

  h3 {
    margin: 0;
    font-size: 20px;
  }
}

.details-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.details-form-row {
  display: flex;
  flex-direction: column;
}

.details-form-row-item {
  width: 50%;
  display: flex;
  flex-direction: column;
}

.details-form-label {
  color: var(--smoke);
  font-size: 14px;
  margin-bottom: 0.5rem;
}

.details-form-input {
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  padding: 14px;
}

.details-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: none;
  padding: 0;
}

.details-checkboxes-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;

  label {
    font-size: 14px;
  }
}

.payment-options {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  width: 100%;
  color: var(--ink);

  @media (max-width: 1024px) {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: auto;
  }
}

.payment-options-wrapper {
  display: flex;
  flex-direction: column;
  background-color: white;
  padding-left: 30px;
  padding-right: 30px;
  padding-bottom: 30px;
  padding-top: 24px;
  border-radius: 10px;
  gap: 1rem;
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.15);
}

.payment-options-header {
  display: flex;
  align-items: center;
  gap: 1rem;

  @media (max-width: 1024px) {
    justify-content: center;
  }

  h3 {
    margin: 0;
    font-size: 20px;
  }

  span {
    font-size: 12px;
  }
}

.payment-options-warning {
  color: red;
  font-size: 12px;
}

.payment-options-subheader,
.payment-options-lock {
  @media (max-width: 1024px) {
    display: none;
  }
}

.options-wrapper {
  display: flex;
  gap: 1rem;

  @media (max-width: 1024px) {
    flex-direction: column;
  }
}

.options-item {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--linen);
  border-radius: 10px;
  min-height: 200px;

  @media (max-width: 1024px) {
    width: 100%;
  }
}

.options-card-types {
  height: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}

.options-banking {
  margin-bottom: 1rem;
}

.options-blurb {
  font-size: 14px;
  text-align: center;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-bottom: 1rem;
}

.options-button,
.options-button-disabled {
  margin-left: auto;
  margin-right: auto;
  cursor: pointer;
  font-family: "Newson GLS", sans-serif;
}

.options-button-disabled {
  opacity: 0.65;
  border: none;
}

/* Footer */
.footer-nav ul {
  display: flex;
  justify-content: flex-end;
  font-size: 14px;
  gap: 12px;
  list-style: none;

  @media (max-width: 1024px) {
    flex-wrap: wrap;
  }

  li {
    border-right: 1px solid white;
    padding-right: 12px;
  }

  li:last-of-type {
    border-right: none;
    padding-right: 0px;
  }

  li > a {
    color: white;
    text-decoration: none;
  }
}

.footer-container {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.footer-socials {
  gap: 1rem;
  display: flex;
  align-items: center;
}

.forminator-button-submit {
  background-color: #ffc107 !important; /* Sunflower colour */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: flex-start !important;
  border-radius: 9999px !important;
  padding: 1rem !important;
  font-size: 0.875rem !important;
  line-height: 1 !important;
  color: black !important;
  text-decoration: none !important;
 }
 
