.price-calculator {
  --text-color: #292929;
  --primary-color: #a60a27;
  margin-top: 28px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.price-calculator-section {
  padding: 70px 0 60px;
  background: #fff;
}

@media (max-width: 768px) {
  .price-calculator-section {
    padding: 40px 0 36px;
  }
}

.price-calculator-section .section-title {
  margin-bottom: 12px;
}

.price-calculator-section .course-section-info {
  margin-bottom: 0;
}

.price-calculator *,
.price-calculator *::before,
.price-calculator *::after {
  box-sizing: border-box;
}

.price-calculator__status {
  margin: 0;
  padding: 24px;
  border-radius: 5px;
  background: #f5f5f5;
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.5;
}

.price-calculator__status.is-error {
  color: var(--primary-color);
  background: rgba(149, 0, 0, 0.06);
}

.price-calculator__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}

@media (max-width: 1200px) {
  .price-calculator__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Embed / popup iframe: form + sonuç yan yana kalsın */
body.is-embed .price-calculator__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: calc(100vh - 32px);
}

body.is-embed .price-calculator__form {
  height: 100%;
  justify-content: flex-start;
}

body.is-embed .price-calculator__result {
  position: static;
  height: 100%;
  min-height: 100%;
  overflow: auto;
}

@media (max-width: 900px) {
  body.is-embed .price-calculator__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

.price-calculator__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin: 0;
  padding: 24px;
  border-radius: 5px;
  background: #f5f5f5;
}

@media (max-width: 768px) {
  .price-calculator__form {
    padding: 18px;
  }
}

.price-calculator__form .form-group {
  width: 100%;
  margin: 0;
}

.price-calculator__form .form-group > label:not(.custom-checkbox) {
  display: block;
  margin: 0 0 8px;
  color: var(--text-color);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.price-calculator__form .form-group .input-wrapper {
  display: flex;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 5px;
  overflow: hidden;
}

.price-calculator__form .form-group .input-wrapper select {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23292929' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  border: 0;
  border-radius: 5px;
  padding: 14px 42px 14px 16px;
  color: var(--text-color);
  font-size: 16px;
  font-weight: 300;
  font-family: inherit;
  line-height: 1.4;
  cursor: pointer;
}

.price-calculator__form .form-group .input-wrapper select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  background-color: #fafafa;
}

.price-calculator__form .form-group .input-wrapper select:focus {
  outline: none;
}

.price-calculator__form .form-group .input-wrapper:focus-within {
  border-color: var(--primary-color);
}

.price-calculator__form .form-group label.price-calculator__campus {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #f0f0f0;
  border-radius: 5px;
  background: #ffffff;
  color: var(--text-color);
  cursor: pointer;
  line-height: 1.2;
  font-size: 15px;
  font-weight: 500;
}

.price-calculator__campus > span {
  position: relative;
}

.price-calculator__campus input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.price-calculator__campus .checked {
  --size: 19px;
  display: block;
  position: relative;
  flex: 0 0 var(--size);
  width: var(--size);
  height: var(--size);
  min-width: var(--size);
  min-height: var(--size);
  margin-top: 2px;
  border: 1px solid var(--primary-color);
  background-color: #fff;
  border-radius: 3px;
}

.price-calculator__campus .checked::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  background-color: transparent;
}

.price-calculator__campus input:checked + .checked::before {
  background-color: var(--primary-color);
}

.price-calculator__campus > span:last-child {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  color: var(--text-color);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.price-calculator__campus > span:last-child small {
  display: block;
  color: rgba(41, 41, 41, 0.65);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.price-calculator__notes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #e8e8e8;
}

.price-calculator__notes p {
  margin: 0;
  color: rgba(41, 41, 41, 0.72);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .price-calculator__notes {
    order: -1;
    margin-top: 0;
    margin-bottom: 6px;
    padding-top: 0;
    padding-bottom: 10px;
    border-top: 0;
    border-bottom: 1px solid #e8e8e8;
  }
}

.price-calculator__result {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 240px;
  padding: 22px;
  border-radius: 5px;
  background: linear-gradient(160deg, #002163 0%, #00133d 100%);
  color: #fff;
  overflow: hidden;
}

@media (min-width: 1025px) {
  .price-calculator__result {
    position: sticky;
    top: 24px;
  }
}

.price-calculator__result::before {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -64px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.price-calculator__result > * {
  position: relative;
  z-index: 1;
}

.price-calculator__result.has-result {
  animation: price-calculator-fade-in 0.35s ease;
}

.price-calculator__result-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
}

.price-calculator__result-empty p {
  margin: 0;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.6;
}

.price-calculator__selection {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.price-calculator__selection strong,
.price-calculator__selection span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  word-break: break-word;
}

.price-calculator__selection strong {
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

.price-calculator__section-title {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.price-calculator__section-desc {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.price-calculator__steps {
  margin: 0 0 20px;
}

.price-calculator__timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-calculator__timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 13px;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.price-calculator__step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-calculator__step-index {
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #00133d;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  z-index: 1;
}

.price-calculator__step-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
}

.price-calculator__step-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.price-calculator__step-row > div {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.price-calculator__step-row > div strong {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.price-calculator__step-row > div span {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.price-calculator__step-row > em {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .price-calculator__step-row > em {
    white-space: normal;
    text-align: right;
  }
}

.price-calculator__step-row > em.is-saving {
  color: #9ee6b8;
}

.price-calculator__step-row > em.is-final {
  font-size: 17px;
}

.price-calculator__step-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
}

.price-calculator__step-subtotal span {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}

.price-calculator__step-subtotal strong {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.price-calculator__payment-totals {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.price-calculator__payment-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
}

.price-calculator__payment-option > div:first-child {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.price-calculator__payment-option > div:first-child strong {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.price-calculator__payment-option > div:first-child span {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.price-calculator__payment-option.is-base {
  background: rgba(255, 255, 255, 0.04);
}

.price-calculator__payment-option.is-highlight {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.price-calculator__payment-option.is-highlight .price-calculator__payment-amount em {
  font-size: 17px;
}

.price-calculator__payment-amount {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.price-calculator__payment-amount small {
  display: block;
  margin: 0;
  color: #9ee6b8;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.price-calculator__payment-amount em {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

@keyframes price-calculator-fade-in {
  from {
    opacity: 0.65;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header trigger + popup */
body.price-calculator-popup-open {
  overflow: hidden;
}

.header-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.price-calculator-trigger.button-round-white {
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
}

.price-calculator-popup[hidden] {
  display: none !important;
}

.price-calculator-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.price-calculator-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.price-calculator-popup__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1100px, calc(100vw - 48px));
  height: min(760px, calc(100vh - 96px));
  height: min(760px, calc(100dvh - 96px));
  max-height: calc(100vh - 96px);
  max-height: calc(100dvh - 96px);
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 24px 64px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  animation: price-calculator-popup-in 0.28s ease;
}

.price-calculator-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  padding: 18px 22px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.price-calculator-popup__heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.price-calculator-popup__eyebrow {
  display: block;
  color: #a60a27;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.price-calculator-popup__header h2 {
  margin: 0;
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.price-calculator-popup__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
  color: #444;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.price-calculator-popup__close:hover {
  background: #fff;
  border-color: #d8d8d8;
  color: #a60a27;
}

.price-calculator-popup__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #f6f7f9;
  padding: 18px;
}

.price-calculator-popup__body .price-calculator {
  margin-top: 0;
}

.price-calculator-popup__body .price-calculator__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.price-calculator-popup__body .price-calculator__form {
  border-radius: 10px;
  border: 1px solid #ececec;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.price-calculator-popup__body .price-calculator__result {
  position: static;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 19, 61, 0.18);
}

@media (max-width: 900px) {
  .price-calculator-popup__body .price-calculator__grid {
    grid-template-columns: 1fr;
  }
}

@keyframes price-calculator-popup-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .top-header .header-social {
    display: none;
  }

  .top-header .header-cta-group {
    margin-left: auto;
    gap: 6px;
  }

  .header-cta-group .header-special-link {
    padding: 8px 10px;
    font-size: 12px;
  }

  .price-calculator-popup {
    padding: 0;
  }

  .price-calculator-popup__dialog {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    border: 0;
  }

  .price-calculator-popup__header {
    padding: 14px 16px;
  }

  .price-calculator-popup__header h2 {
    font-size: 17px;
  }

  .price-calculator-popup__close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .price-calculator-popup__body {
    padding: 14px;
  }
}
