/* =========================================================
   CURSOS - HOME
   ========================================================= */

.courses-home {
  position: relative;
  padding: 120px 7vw;
  background: var(--cream);
  overflow: hidden;
}

.courses-home::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -180px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(198, 164, 81, 0.35);
  border-radius: 50%;
}

.courses-home::after {
  content: "";
  position: absolute;
  bottom: -220px;
  left: -180px;
  width: 450px;
  height: 450px;
  border: 1px solid rgba(24, 60, 44, 0.08);
  border-radius: 50%;
}

.courses-home-inner {
  position: relative;
  z-index: 2;
  max-width: 1150px;
  margin: 0 auto;
}

.courses-home-header {
  max-width: 780px;
}

.courses-home-header h2 {
  margin: 18px 0 25px;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.courses-home-header h2 span {
  display: block;
  color: var(--green);
}

.courses-home-header p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.courses-home-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin-top: 75px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.courses-home-info {
  max-width: 550px;
}

.courses-home-info > span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.courses-home-info strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 500;
}

.courses-home-info p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.courses-home-link {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  min-width: 190px;
  padding: 18px 0;
  color: var(--green);
  border-bottom: 1px solid var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.courses-home-link strong {
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.3s ease;
}

.courses-home-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.courses-home-link:hover strong {
  transform: translateX(6px);
}

/* =========================================================
   PÁGINA DE CURSOS
   ========================================================= */

.courses-page {
  min-height: 100vh;
  background: var(--cream);
}

/* =========================================================
   HERO
   ========================================================= */

.courses-hero {
  position: relative;
  overflow: hidden;
  padding: 180px 7vw 115px;
  color: #fff;
  background: var(--green-dark);
}

.courses-hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(198, 164, 81, 0.28);
  border-radius: 50%;
}

.courses-hero::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: -250px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.courses-hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.courses-hero .eyebrow {
  color: rgba(255, 255, 255, 0.58);
}

.courses-hero h1 {
  margin: 20px 0 25px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(55px, 7vw, 90px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.courses-hero h1 span {
  display: block;
  color: var(--gold);
}

.courses-hero p {
  max-width: 650px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.9;
}

/* =========================================================
   LISTAGEM
   ========================================================= */

.courses-list {
  max-width: 1250px;
  margin: 0 auto;
  padding: 100px 45px 120px;
}

.courses-heading {
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
}

.courses-heading .eyebrow {
  color: var(--green);
}

.courses-heading h2 {
  margin: 15px 0 20px;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(45px, 5vw, 68px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.courses-heading h2 span {
  color: var(--green);
}

.courses-heading p {
  max-width: 580px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* =========================================================
   GRID
   ========================================================= */

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

/* =========================================================
   CARD
   ========================================================= */

.course-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: rgba(198, 164, 81, 0.7);
  box-shadow: 0 20px 45px rgba(24, 60, 44, 0.1);
}

/* =========================================================
   IMAGEM
   ========================================================= */

.course-card-image {
  position: relative;
  height: 310px;
  overflow: hidden;
  background: var(--paper);
}

.course-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 33, 25, 0.35), transparent 45%);
  pointer-events: none;
}

.course-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.course-card:hover .course-card-image img {
  transform: scale(1.04);
}

/* =========================================================
   CATEGORIA
   ========================================================= */

.course-card-category {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  padding: 8px 12px;
  color: var(--green-dark);
  background: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* =========================================================
   CONTEÚDO
   ========================================================= */

.course-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 32px 32px 30px;
}

.course-card-content h2 {
  max-width: 500px;
  margin: 0 0 15px;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}

.course-card-description {
  max-width: 560px;
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* =========================================================
   INFORMAÇÕES
   ========================================================= */

.course-card-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.course-info-item {
  min-width: 0;
  padding: 14px 15px;
  background: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.course-info-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.course-info-value {
  display: block;
  max-width: 100%;

  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;

  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

/* =========================================================
   RODAPÉ DO CARD
   ========================================================= */

.course-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.course-price small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.course-price strong {
  color: var(--green);
  font-family: "Cormorant Garamond", serif;
  font-size: 31px;
  font-weight: 600;
}

/* =========================================================
   BOTÃO VER CURSO
   ========================================================= */
.course-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;

  width: 170px;
  height: 48px;
  padding: 0 18px;

  color: var(--green);
  background: transparent;

  border: 1px solid var(--green);

  font-family: "Raleway", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.course-card-button span {
  display: block;
  padding: 0;
}

.course-card-button strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  height: auto;
  padding: 0;

  color: var(--gold);
  background: transparent;

  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;

  transition: transform 0.3s ease;
}

.course-card-button:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
}

.course-card-button:hover strong {
  color: var(--gold);
  transform: translateX(5px);
}
/* =========================================================
   FUTUROS CURSOS
   ========================================================= */

.courses-status {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 280px;
  padding: 50px 30px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--border);
}

.courses-status strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  font-weight: 500;
}

.courses-status span {
  max-width: 420px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* =========================================================
   MODAL DO CURSO
   ========================================================= */

.course-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.course-modal.active {
  visibility: visible;
  opacity: 1;
}

.course-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 33, 25, 0.78);
  backdrop-filter: blur(5px);
}

.course-modal-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  width: min(900px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.course-modal.active .course-modal-content {
  transform: translateY(0);
}

/* =========================================================
   FECHAR MODAL
   ========================================================= */

.course-modal-close {
  position: absolute;
  z-index: 5;
  top: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 50%;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transition: 0.25s;
}

.course-modal-close:hover {
  color: #fff;
  background: var(--green);
}

/* =========================================================
   IMAGEM DO MODAL
   ========================================================= */

.course-modal-image {
  min-height: 500px;
  overflow: hidden;
}

.course-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   CONTEÚDO DO MODAL
   ========================================================= */

.course-modal-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 55px;
}

.course-modal-category {
  margin-bottom: 15px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.course-modal-body h2 {
  margin: 0 0 20px;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 500;
  line-height: 0.98;
}

.course-modal-description {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* =========================================================
   INFORMAÇÕES DO MODAL
   ========================================================= */

.course-modal-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 30px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.course-modal-info div {
  padding: 18px 12px;
  border-right: 1px solid var(--border);
}

.course-modal-info div:last-child {
  border-right: 0;
}

.course-modal-info span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.course-modal-info strong {
  color: var(--text);
  font-size: 11px;
}

/* =========================================================
   BOTÃO DO MODAL
   ========================================================= */

.course-modal-actions {
  display: flex;
}

.course-modal-buy {
  width: 100%;
  padding: 16px 20px;
  color: var(--green-dark);
  background: var(--gold);
  border: 0;
  font-family: "Raleway", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.course-modal-buy:hover {
  background: #d8b96a;
  transform: translateY(-2px);
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 900px) {
  .courses-list {
    padding-right: 30px;
    padding-left: 30px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .course-card-image {
    height: 350px;
  }

  .course-modal-content {
    grid-template-columns: 1fr;
    max-width: 650px;
  }

  .course-modal-image {
    height: 300px;
    min-height: 0;
  }

  .course-modal-body {
    padding: 40px;
  }
}

@media (max-width: 700px) {
  .courses-home {
    padding: 85px 24px;
  }

  .courses-home-header h2 {
    font-size: clamp(45px, 12vw, 62px);
  }

  .courses-home-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 35px;
    margin-top: 55px;
  }

  .courses-home-link {
    width: 100%;
  }

  .courses-hero {
    padding: 150px 24px 90px;
  }

  .courses-hero h1 {
    font-size: clamp(48px, 13vw, 68px);
  }

  .courses-hero p {
    font-size: 13px;
  }

  .courses-list {
    padding: 75px 20px 90px;
  }

  .courses-heading {
    margin-bottom: 45px;
  }

  .courses-heading h2 {
    font-size: clamp(43px, 12vw, 60px);
  }

  .course-card-image {
    height: 270px;
  }

  .course-card-content {
    padding: 27px 23px 25px;
  }

  .course-card-content h2 {
    font-size: 32px;
  }

  .course-card-info {
    grid-template-columns: 1fr;
  }

  .course-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-card-button {
    width: 100%;
    min-width: 0;
  }

  .courses-status {
    min-height: 230px;
    padding: 40px 22px;
  }

  .course-modal {
    padding: 15px;
  }

  .course-modal-content {
    display: block;
    width: 100%;
    max-height: 92vh;
  }

  .course-modal-image {
    height: 230px;
    min-height: 0;
  }

  .course-modal-body {
    padding: 32px 25px 30px;
  }

  .course-modal-body h2 {
    font-size: 40px;
  }

  .course-modal-info {
    grid-template-columns: 1fr;
  }

  .course-modal-info div {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .course-modal-info div:last-child {
    border-bottom: 0;
  }

  .course-modal-close {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 450px) {
  .courses-hero {
    padding: 140px 20px 80px;
  }

  .course-card-image {
    height: 230px;
  }

  .course-card-content h2 {
    font-size: 29px;
  }

  .course-price strong {
    font-size: 28px;
  }

  .course-modal-body {
    padding: 28px 20px 25px;
  }

  .course-modal-body h2 {
    font-size: 36px;
  }
}

/* =====================================================
   POP-UP DO CURSO
   ===================================================== */

.course-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.course-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.course-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 33, 25, 0.72);
  backdrop-filter: blur(4px);
}

.course-modal-content {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--cream);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.course-modal.is-open .course-modal-content {
  transform: translateY(0);
}

.course-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.92);
  color: var(--green);

  font-family: Arial, sans-serif;
  font-size: 27px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.course-modal-close:hover {
  background: var(--green);
  color: #fff;
  transform: rotate(90deg);
}

/* =====================================================
   IMAGEM
   ===================================================== */

.course-modal-image {
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.course-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================================================
   CONTEÚDO
   ===================================================== */

.course-modal-body {
  padding: 42px;
}

.course-modal-category {
  display: block;
  margin-bottom: 12px;

  color: var(--gold);

  font-family: "Raleway", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.course-modal-body h2 {
  margin: 0 0 18px;

  color: var(--green);

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.05;
}

.course-modal-description {
  max-width: 700px;
  margin: 0 0 32px;

  color: var(--muted);

  font-family: "Raleway", sans-serif;
  font-size: 14px;
  line-height: 1.8;
}

/* =====================================================
   INFORMAÇÕES
   ===================================================== */

.course-modal-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.course-modal-info-item {
  min-width: 0;
  padding: 20px 18px;
  border-bottom: 1px solid var(--border);
}

.course-modal-info-item:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.course-modal-info-item:nth-last-child(-n + 2) {
  border-bottom: none;
}

.course-modal-info-item small {
  display: block;
  margin-bottom: 7px;

  color: var(--muted);

  font-family: "Raleway", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.course-modal-info-item strong {
  display: block;

  color: var(--text);

  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;

  overflow-wrap: break-word;
}

/* =====================================================
   RODAPÉ DO POP-UP
   ===================================================== */

.course-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  padding-top: 32px;
}

.course-modal-price small {
  display: block;
  margin-bottom: 5px;

  color: var(--muted);

  font-family: "Raleway", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.course-modal-price strong {
  display: block;

  color: var(--green);

  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  font-weight: 600;
}

/* =====================================================
   BOTÃO CHECKOUT
   ===================================================== */

.course-modal-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;

  min-width: 190px;
  height: 52px;
  padding: 0 22px;

  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);

  font-family: "Raleway", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.course-modal-checkout strong {
  color: var(--gold);

  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;

  transition: transform 0.3s ease;
}

.course-modal-checkout:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
}

.course-modal-checkout:hover strong {
  transform: translateX(5px);
}

/* =====================================================
   BLOQUEAR SCROLL DA PÁGINA
   ===================================================== */

body.modal-open {
  overflow: hidden;
}

/* =====================================================
   RESPONSIVO
   ===================================================== */

@media (max-width: 700px) {
  .course-modal {
    padding: 15px;
  }

  .course-modal-content {
    max-height: 94vh;
  }

  .course-modal-image {
    height: 220px;
  }

  .course-modal-body {
    padding: 28px 22px;
  }

  .course-modal-body h2 {
    font-size: 36px;
  }

  .course-modal-info {
    grid-template-columns: 1fr;
  }

  .course-modal-info-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .course-modal-info-item:last-child {
    border-bottom: none !important;
  }

  .course-modal-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
  }

  .course-modal-checkout {
    width: 100%;
  }
}

/* =====================================================
   CHECKOUT
   ===================================================== */

.checkout-page {
    min-height: 80vh;
    padding: 100px 24px;
    background: var(--cream);
}

.checkout-container {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.checkout-header {
    max-width: 700px;
    margin-bottom: 55px;
}

.checkout-header .eyebrow {
    display: block;
    margin-bottom: 12px;

    color: var(--gold);

    font-family: "Raleway", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.checkout-header h1 {
    margin: 0 0 15px;

    color: var(--green);

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(42px, 5vw, 62px);
    font-weight: 500;
    line-height: 1;
}

.checkout-header p {
    margin: 0;

    color: var(--muted);

    font-family: "Raleway", sans-serif;
    font-size: 14px;
    line-height: 1.7;
}


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

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.8fr);
    gap: 50px;
    align-items: start;
}


/* =====================================================
   CURSO
   ===================================================== */

.checkout-course {
    background: #fff;
    border: 1px solid var(--border);
}

.checkout-course-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.checkout-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-course-content {
    padding: 35px;
}

.checkout-course-category {
    display: block;
    margin-bottom: 10px;

    color: var(--gold);

    font-family: "Raleway", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.checkout-course-content h2 {
    margin: 0 0 15px;

    color: var(--green);

    font-family: "Cormorant Garamond", serif;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.05;
}

.checkout-course-description {
    margin: 0 0 30px;

    color: var(--muted);

    font-family: "Raleway", sans-serif;
    font-size: 13px;
    line-height: 1.8;
}


/* =====================================================
   INFORMAÇÕES
   ===================================================== */

.checkout-course-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.checkout-course-info > div {
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.checkout-course-info > div:nth-child(odd) {
    border-right: 1px solid var(--border);
}

.checkout-course-info > div:nth-last-child(-n + 2) {
    border-bottom: none;
}

.checkout-course-info small,
.checkout-price small {
    display: block;
    margin-bottom: 6px;

    color: var(--muted);

    font-family: "Raleway", sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.checkout-course-info strong {
    display: block;

    color: var(--text);

    font-family: "Raleway", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}


/* =====================================================
   PREÇO
   ===================================================== */

.checkout-price {
    padding-top: 30px;
}

.checkout-price strong {
    color: var(--green);

    font-family: "Cormorant Garamond", serif;
    font-size: 38px;
    font-weight: 600;
}


/* =====================================================
   FORMULÁRIO
   ===================================================== */

.checkout-form-section {
    padding: 40px;
    background: #fff;
    border: 1px solid var(--border);
}

.checkout-form-header {
    margin-bottom: 32px;
}

.checkout-form-header > span {
    display: block;
    margin-bottom: 8px;

    color: var(--gold);

    font-family: "Raleway", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.17em;
}

.checkout-form-header h2 {
    margin: 0;

    color: var(--green);

    font-family: "Cormorant Garamond", serif;
    font-size: 36px;
    font-weight: 500;
}


/* =====================================================
   CAMPOS
   ===================================================== */

.checkout-form-section .form-group {
    margin-bottom: 22px;
}

.checkout-form-section label {
    display: block;
    margin-bottom: 8px;

    color: var(--text);

    font-family: "Raleway", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.checkout-form-section input {
    width: 100%;
    height: 50px;
    padding: 0 15px;

    color: var(--text);
    background: #fff;

    border: 1px solid var(--border);

    outline: none;

    font-family: "Raleway", sans-serif;
    font-size: 13px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.checkout-form-section input:focus {
    border-color: var(--green);

    box-shadow:
        0 0 0 3px rgba(24, 60, 44, 0.08);
}

.checkout-form-section input::placeholder {
    color: #a1a7a3;
}


/* =====================================================
   SEGURANÇA
   ===================================================== */

.checkout-security {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin: 28px 0;

    padding: 15px;

    background: #f6f3ed;
}

.checkout-security span {
    color: var(--green);
    font-size: 13px;
}

.checkout-security p {
    margin: 0;

    color: var(--muted);

    font-family: "Raleway", sans-serif;
    font-size: 10px;
    line-height: 1.6;
}


/* =====================================================
   BOTÃO
   ===================================================== */

.checkout-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    width: 100%;
    height: 54px;

    color: #fff;
    background: var(--green);

    border: 1px solid var(--green);

    font-family: "Raleway", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.checkout-submit strong {
    color: var(--gold);

    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
}

.checkout-submit:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

.checkout-submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}


/* =====================================================
   MENSAGEM
   ===================================================== */

.checkout-message {
    display: none;

    margin-bottom: 25px;
    padding: 15px 18px;

    font-family: "Raleway", sans-serif;
    font-size: 12px;
    line-height: 1.5;
}

.checkout-message.error {
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f1aeb5;
}

.checkout-message.success {
    color: #0f5132;
    background: #d1e7dd;
    border: 1px solid #a3cfbb;
}


/* =====================================================
   VOLTAR
   ===================================================== */

.checkout-back {
    color: var(--green);

    font-family: "Raleway", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}


/* =====================================================
   RESPONSIVO
   ===================================================== */

@media (max-width: 850px) {

    .checkout-layout {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .checkout-page {
        padding: 70px 18px;
    }

    .checkout-course-content,
    .checkout-form-section {
        padding: 25px;
    }

    .checkout-course-content h2 {
        font-size: 36px;
    }

    .checkout-course-info {
        grid-template-columns: 1fr;
    }

    .checkout-course-info > div {
        border-right: none !important;
        border-bottom: 1px solid var(--border) !important;
    }

    .checkout-course-info > div:last-child {
        border-bottom: none !important;
    }

}

/* =====================================================
   CHECKOUT - ESTILO ESPECÍFICO
   ===================================================== */

body:has(.checkout-page) {
    background: #f6f3ed;
}

.checkout-page {
    display: block;
    width: 100%;
    min-height: calc(100vh - 160px);
    padding: 90px 7% 100px;
    background: #f6f3ed;
    box-sizing: border-box;
}

.checkout-container {
    display: block;
    width: min(1180px, 100%);
    margin: 0 auto;
}


/* =====================================================
   HEADER DO CHECKOUT
   ===================================================== */

.checkout-header {
    display: block;
    width: 100%;
    max-width: 700px;
    margin: 0 0 50px;
}

.checkout-header .eyebrow {
    display: block;
    margin: 0 0 15px;
    color: #c6a451;
    font-family: "Raleway", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.5;
    text-transform: uppercase;
}

.checkout-header h1 {
    display: block;
    margin: 0 0 18px;
    color: #183c2c;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 500;
    line-height: 0.95;
}

.checkout-header p {
    display: block;
    max-width: 620px;
    margin: 0;
    color: #69726d;
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
}


/* =====================================================
   MENSAGEM
   ===================================================== */

.checkout-message {
    display: none;
    width: 100%;
    margin: 0 0 30px;
    padding: 16px 20px;
    box-sizing: border-box;
    border: 1px solid #d9d4c9;
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

.checkout-message.success {
    display: block;
    color: #183c2c;
    background: #edf3ee;
    border-color: #c8d8cb;
}

.checkout-message.error {
    display: block;
    color: #8a3028;
    background: #f8ecea;
    border-color: #e3c5c1;
}


/* =====================================================
   LAYOUT PRINCIPAL
   ===================================================== */

.checkout-layout {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1.1fr) minmax(350px, 0.9fr);
    gap: 35px;
    align-items: start;
}


/* =====================================================
   CARD DO CURSO
   ===================================================== */

.checkout-course {
    display: block;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #d9d4c9;
}

.checkout-course-image {
    display: block;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: #eeeae1;
}

.checkout-course-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-course-content {
    display: block;
    padding: 38px;
    box-sizing: border-box;
}

.checkout-course-category {
    display: block;
    margin: 0 0 14px;
    color: #c6a451;
    font-family: "Raleway", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.5;
    text-transform: uppercase;
}

.checkout-course-content h2 {
    display: block;
    margin: 0 0 18px;
    color: #183c2c;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 500;
    line-height: 1;
}

.checkout-course-description {
    display: block;
    margin: 0 0 30px;
    color: #69726d;
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;
}


/* =====================================================
   INFORMAÇÕES
   ===================================================== */

.checkout-course-info {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #d9d4c9;
}

.checkout-course-info > div {
    min-width: 0;
    padding: 18px 20px 18px 0;
    box-sizing: border-box;
    border-bottom: 1px solid #d9d4c9;
}

.checkout-course-info > div:nth-child(odd) {
    border-right: 1px solid #d9d4c9;
}

.checkout-course-info > div:nth-child(even) {
    padding-left: 20px;
}

.checkout-course-info small {
    display: block;
    margin: 0 0 7px;
    color: #69726d;
    font-family: "Raleway", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.checkout-course-info strong {
    display: block;
    margin: 0;
    color: #183c2c;
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: break-word;
}


/* =====================================================
   PREÇO
   ===================================================== */

.checkout-price {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0 0;
}

.checkout-price small {
    display: block;
    margin: 0 0 5px;
    color: #69726d;
    font-family: "Raleway", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.checkout-price strong {
    display: block;
    margin: 0;
    color: #183c2c;
    font-family: "Cormorant Garamond", serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1;
}


/* =====================================================
   FORMULÁRIO
   ===================================================== */

.checkout-form-section {
    display: block;
    width: 100%;
    padding: 38px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #d9d4c9;
}

.checkout-form-header {
    display: block;
    margin: 0 0 32px;
}

.checkout-form-header > span {
    display: block;
    margin: 0 0 12px;
    color: #c6a451;
    font-family: "Raleway", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.5;
    text-transform: uppercase;
}

.checkout-form-header h2 {
    display: block;
    margin: 0;
    color: #183c2c;
    font-family: "Cormorant Garamond", serif;
    font-size: 38px;
    font-weight: 500;
    line-height: 1;
}


/* =====================================================
   CAMPOS
   ===================================================== */

.checkout-form-section .form-group {
    display: block;
    width: 100%;
    margin: 0 0 23px;
}

.checkout-form-section .form-group label {
    display: block;
    margin: 0 0 9px;
    color: #183c2c;
    font-family: "Raleway", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-transform: uppercase;
}

.checkout-form-section .form-group input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    box-sizing: border-box;
    color: #17231d;
    background: #ffffff;
    border: 1px solid #d9d4c9;
    border-radius: 0;
    outline: none;
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    line-height: 1;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.checkout-form-section .form-group input::placeholder {
    color: #a1a7a3;
}

.checkout-form-section .form-group input:focus {
    border-color: #183c2c;
    box-shadow: 0 0 0 3px rgba(24, 60, 44, 0.07);
}


/* =====================================================
   SEGURANÇA
   ===================================================== */

.checkout-security {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin: 28px 0;
    padding: 16px;
    box-sizing: border-box;
    background: #f4f2ec;
}

.checkout-security > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    color: #c6a451;
    background: #183c2c;
    font-size: 12px;
}

.checkout-security p {
    display: block;
    margin: 0;
    color: #69726d;
    font-family: "Raleway", sans-serif;
    font-size: 11px;
    line-height: 1.6;
}


/* =====================================================
   BOTÃO
   ===================================================== */

.checkout-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    padding: 0 22px;
    box-sizing: border-box;
    color: #ffffff;
    background: #183c2c;
    border: 1px solid #183c2c;
    border-radius: 0;
    cursor: pointer;
    font-family: "Raleway", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1;
    text-transform: uppercase;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.checkout-submit span {
    margin: 0;
    padding: 0;
}

.checkout-submit strong {
    margin: 0;
    padding: 0;
    color: #c6a451;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.checkout-submit:hover {
    background: #0d2119;
    border-color: #0d2119;
    transform: translateY(-2px);
}

.checkout-submit:hover strong {
    transform: translateX(5px);
}

.checkout-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


/* =====================================================
   LINK VOLTAR
   ===================================================== */

.site-header .checkout-back {
    color: #183c2c;
    font-family: "Raleway", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-decoration: none;
    text-transform: uppercase;
}

.site-header .checkout-back:hover {
    color: #c6a451;
}


/* =====================================================
   RESPONSIVO
   ===================================================== */

@media (max-width: 900px) {

    .checkout-page {
        padding: 70px 5% 80px;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-course-image {
        height: 300px;
    }

}


@media (max-width: 600px) {

    .checkout-page {
        padding: 50px 20px 70px;
    }

    .checkout-header {
        margin-bottom: 35px;
    }

    .checkout-header h1 {
        font-size: 44px;
    }

    .checkout-course-content,
    .checkout-form-section {
        padding: 26px 22px;
    }

    .checkout-course-image {
        height: 220px;
    }

    .checkout-course-content h2 {
        font-size: 34px;
    }

    .checkout-course-info {
        grid-template-columns: 1fr;
    }

    .checkout-course-info > div,
    .checkout-course-info > div:nth-child(even) {
        padding: 16px 0;
        border-right: none;
    }

    .checkout-price {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .checkout-form-header h2 {
        font-size: 34px;
    }

}