.knob{
  position: relative;
  width: 300px;
  height: 318px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}
.knob-arrow {
  width: 225px;
  position: absolute;
  top: 50px;
  left: 37px;
  touch-action: none;
  user-select: none;
  cursor: grab;
  transform: rotate(0deg);
  z-index: 2;
  border-radius: 50%;
}
.knob {
    cursor: grab;
    user-select: none;
}

.knob.is-dragging {
    cursor: grabbing;
}

.knob-arrow {
    pointer-events: none;
}

/* PAGE TEMPLATE */
.hero-section {
  position: relative;
  height: 505px;
  width: 100%;
  background: url('../img/template.png') center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  margin-bottom: 147px;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); 
  z-index: 1;
}
.hero-content {
  z-index: 2;
}
.hero-content h1 {
  font-size: 80px;
  line-height: 1;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  font-family: VVDS Fifties SExp;
}
.hero-content p {
  font-size: 24px;
  line-height: 1;
  margin-top: 23px;
  margin-bottom: 0;
  font-weight: 400;
  font-family: Forma DJR Display;
}
.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 60px;
  font-size: 28px;
  display: block;
  transform: translateX(-50%);
}
.scroll-down svg {
  width: 24px;
  height: 24px;
}

.printtheory-form-container {
    max-width: 1420px;  
    margin: 0 auto;
    padding: 0; 
}
  .form-title {
    font-weight: 900;
    font-size: 2.2em;
    margin-top: 40px;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-align: center;
  }

  /* --- 2. Perbaikan Garis Pemisah (Separator) --- */
  hr {
    border: none;
    border-bottom: 2px dashed #ddd;
    height: 1px;
    margin: 40px auto;
    width: 80%;
  }

  /* --- 3. Perbaikan Pilihan Radio (WHAT SERVICES & DESIGN SERVICES) --- */
.service-selection,
.design-services-selection {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

  /* Kotak Pilihan Teks (Dasar) */
.custom-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    border: 2px solid #000;
    padding: 22px 30px;
    transition: all 0.2s ease-in-out;
    max-width: none; 
    width: calc(50% - 15px); 
    justify-content: flex-start;
}
.label-text {
  font-family: Forma DJR Display;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
}

.printtheory-form-container .form-title {
    margin-left: auto;
    margin-right: auto;
    font-family: VVDS Fifties SExp;
    font-weight: 700;
    font-size: 60px;
    line-height: 1.16;
    color: #000;
    margin-top: 0;
    margin-bottom: 30px;
}
.printtheory-form-container hr {
  margin: 50px 0;
  width: 100%;
}


  /* Pilihan Teks saat TERPILIH/CHECKED: Garis berubah menjadi KUNING */
  .custom-radio input:checked+.checkmark-box,
  .custom-radio:has(input:checked) {
    border-color: #DBE131;

  }

  .custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
  }

  /* Kontainer Tombol Radio Kustom */
  .checkmark-box {
    height: 50px;
    width: 50px;
    background: #ccc;
    border: 3px solid #000;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
  }

  .custom-radio input:checked+.checkmark-box {
    background: white;
    border-color: #DBE131;
    border-width: 3px;
  }

  /* Warna radio button saat TIDAK TERPILIH (Abu-abu muda) */
.custom-radio .checkmark-box:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px; 
    height: 28px;
    border-radius: 50%;
    background: transparent; 
    transition: background 0.2s ease-in-out;
}

  /* Warna radio button saat TERPILIH (Kuning) */
.custom-radio input:checked + .checkmark-box:before {
    background: #DBE131; 
    width: 28px;  
    height: 28px;
}


.categories-grid {
    gap: 23px; 
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    margin-bottom: 120px;
}

.image-box {
    position: relative;
    overflow: hidden;
    border: 2px solid #282827;
    height: 354px; 
    cursor: pointer;
}
.image-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(219, 225, 49, 0) 0%, #000000 150%);
  z-index: 1;
}
.image-box img {
    width: 100%; 
    /* KUNCI #4: Tinggi baru 320px */
    height: 100%; 
    display: block;
    object-fit: cover; 
    filter: none;
}

/* --- Tambahan: Sembunyikan Checkbox Asli --- */
.image-choice input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

/* --- 3. Perbaikan Media Query (PENTING untuk 4 kolom) --- */

.category-label {
 position: absolute;
 bottom: 15px;
 left: 15px;
 color: white;
 font-family: Forma DJR Display;
 font-weight: bold;
 line-height: 1.5;
 font-size: 18px;
 z-index: 10; 
 background-color: transparent;
 padding-left: 43px; 
}

.category-label::before {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 height: 28px; 
 width: 28px; 
 border: 2px solid #000; 
 border-radius: 50%; 
 background: #FFFFFF; 
 transition: all 0.2s;
}

.image-choice input:checked ~ .image-box {
    /* box-shadow: 0 0 0 2px #DBE131;  */
    border-color: #DBE131; 
}

.image-choice input:checked ~ .image-box .category-label::before {
 background: white; 
 border-color: #DBE131; 
 border-width: 2px; 
}

/* 3. Menambahkan titik hitam di tengah checkbox yang dipilih (opsional, tapi ada di desain) */
.image-choice input:checked ~ .image-box .category-label::after {
 content: '';
 position: absolute;
 left: 7px; 
 top: 49%;
 transform: translateY(-50%);
 height: 14px; 
 width: 14px;
 border-radius: 50%;
 background: #DBE131; 
}

  /* Tombol LANJUTKAN dipindahkan ke kiri bawah seperti desain asli */
  .submit-button {
    margin: 40px auto 20px 0;
    padding: 10px 25px;
    background: #ffd700;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    transition: background-color 0.2s;
  }

  .design-services-selection .custom-radio {
    width: calc(33.33% - 15px);
    max-width: none;
  }

  /* Perataan Tombol Lanjutkan ke Kiri */
  main.printtheory-page .printtheory-form-container {
    text-align: left;
  }

  .printtheory-form-container .form-title,
  .printtheory-form-container hr {
    margin-left: auto;
    margin-right: auto;
  }

  /* Tombol submit dirapikan lagi (penting untuk meratakan ke kiri) */
  .printtheory-form-container .submit-button {
    display: block;
    margin: 40px 0 20px 0;
  }


/* Wrapper Budget & Timeline (Mengganti HR) */
.print-theory-section {
  position: relative;
  background: url('../img/bg-2.png');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
  z-index: 0;
  padding: 120px 0;
}


/* Overlay putih transparan */
.print-theory-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #F6F6EF; 
  opacity: 70%;
  z-index: 0;
}

.print-theory-section > * {
  position: relative;
  z-index: 1;
}

.pt-title {
  font-family: VVDS Fifties SExp;
  font-size: 60px;
  font-weight: 700;
  margin: 0 0 88px 0;
  text-align: center;
  color: #000000;
}

.pt-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 154px;
  flex-wrap: wrap;
}

.pt-left {
  display: flex;
  flex-direction: column;
}

.pt-control h3 {
  font-size: 50px;
  margin: 0 0 20px 0;
  font-family: forma-djr-display;
  font-weight: 900;
  color: #000000;
}

.pt-knob {
  width: 170px;
  height: auto;
}

.pt-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 12px;
}

.pt-right {
  text-align: center;
}

.pt-subtitle {
  font-size: 30px;
  margin-bottom: 15px;
  line-height: 1.06;
  font-family: forma-djr-display;
  font-weight: 500;
  color: #000000;
}

.pt-budget {
  font-size: 80px;
  margin: 0 0 60px 0;
  font-family: forma-djr-display;
  font-weight: 900;
  color: #000000;
}

.mt-60 {
  margin-top: 60px;
}

.pt-gauge-wrapper {
  width: 100%;
}

.pt-gauge {
  width: 100%;
  height: auto;
}

.pt-gauge img,
.pt-gauge svg {
  width: 100% !important;
  height: auto !important;
}

.pt-timeline {
  font-size: 80px;
  font-family: forma-djr-display;
  font-weight: 900;
  color: #000000;
}

.pt-note {
  margin-top: 50px;
  background: #fff;
  display: inline-block;
  padding: 55px 110px;
}

.pt-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.pt-warning span {
  font-family: forma-djr-display;
  font-size: 24px;
  line-height: 1.33;
  font-weight: 700;
  color: #000;
}

.contact-section {
  max-width: 758px;
  margin: 120px auto;
  color: #000;
}

.contact-title {
  font-family: VVDS Fifties SExp;
  font-size: 60px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  margin-top: 0;
  margin-bottom: 54px;
}

.contact-form {
  width: 100%;
  font-family: forma-djr-display;
}

.form-row {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.form-group.full {
  width: 100%;
}

/* Label */
.contact-form label {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 9px;
}

/* Input styling */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
  width: 100%;
  padding: 13px 25px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.15px;
  border: none;
  outline: none;
  background-color: #F4F4F4; 
  color: #646464;
}

.contact-form input::placeholder {
  color: #999;
}

.contact-form input:focus {
  background-color: #eee;
}

/* Upload section */
.brand-upload-wrap {
  margin: 30px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.upload-label {
  font-family: forma-djr-display;
  font-weight: 500 !important;
  font-size: 16px !important;
  color: #0F1925 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}
.input-upload-wrap {
  position: relative;
  background-color: #E7E8C5;
  padding: 10.5px 19px;
  color: #000000;
  font-family: forma-djr-display;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
}
.brand-input {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.upload-btn {
  background-color: #E7E8C5; 
  color: #000;
  border: none;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.upload-btn:hover {
  background-color: #e6e25a;
}

/* Submit Button */
.btn-submit-form {
  display: block;
  width: 100% !important;
  background-color: #DBE131 !important; 
  color: #000 !important;
  font-family: forma-djr-display;
  font-weight: 800 !important;
  text-transform: uppercase;
  font-size: 20px !important;
  border: none !important;
  outline: none !important;
  padding: 28px 0 !important;
  line-height: 1.2;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: #eaea48;
}
.success-msg-wrap {
  border: 2px solid #DBE131;
  padding: 15px 10px;
  margin-bottom: 20px;
}
.success-msg-wrap > p {
  margin: 0;
  text-align: center;
  font-family: 'Forma DJR Display';
  font-weight: 800;
  font-style: Extra Bold;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
}

.mobile-knob-value-warp {
  display: none;
}

.pt-gauge-wrapper {
  position: relative;
  cursor: grab;
  user-select: none;
}
.gauge-arrow {
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.pt-gauge-wrapper.is-dragging {
  cursor: grabbing;
}
.gauge-arrow {
  pointer-events: none;
}

@media screen and (max-width: 1420px) {
  .printtheory-form-container {
      padding: 0 20px; 
  }
}
@media screen and (max-width: 1024px) {
  .categories-grid {
      grid-template-columns: repeat(3, 1fr);
  }
  .service-selection, .design-services-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .design-services-selection .custom-radio,
  .custom-radio {
    width: 100%;
  }
  .print-theory-section {
    padding: 60px 0;
  }
  .pt-container {
    flex-direction: row;
    gap: 60px;
  }
  .pt-left {
    flex-direction: row;
    gap: 30px
  }
  .print-theory-section {
    background-size: cover;
  }
  .mobile-knob-value-warp {
    display: block;
  }
  .pt-subtitle,
  .pt-budget,
  .pt-timeline {
    display: none;
  }
  .mobile-knob-value-title,
  .mobile-knob-value {
    font-family: forma-djr-display;
    font-size: 25px;
    line-height: 1.2;
    margin-bottom: 4px;
    color: #000000;
    text-transform: uppercase;
  }
  .mobile-knob-value {
    font-weight: 700;
    margin: 0;
  }
}
@media screen and (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 60px;
  }
  .hero-section {
    margin-bottom: 60px;
  }
  .service-selection, .design-services-selection {
    grid-template-columns: repeat(1, 1fr);
  }
  .pt-title {
    margin: 0 0 60px 0;
  }
}
@media screen and (max-width: 767px) {
  .knob {
    width: 164px;
    height: 164px;
  }
  .knob-arrow {
    width: 125px;
    top: 20px;
    left: 20px;
  }
  .pt-control h3 {
    font-size: 25px;
  }
  .pt-left {
    gap: 50px;
  }
  .pt-title {
    font-size: 45px;
    margin: 0 0 50px 0;
  }
  .pt-control {
    display: flex;
    align-items: center;
    gap: 30px;
  }
  .pt-control:first-child {
    flex-direction: row-reverse;
  }
  .mobile-knob-value-title,
  .mobile-knob-value {
    font-size: 16px;
  }
  .pt-note {
    padding: 15px 30px;
  }
  .pt-warning svg {
    width: 30px;
  }
  .pt-warning span {
    font-size: 16px;
  }
  .pt-gauge {
    width: 380px;
  }
}
@media screen and (max-width: 640px) {
  .knob {
    width: 88px;
    height: 88px;
  }
  .knob-arrow {
    width: 65px;
    height: 65px;
    top: 13px;
    left: 11px;
  }
  .pt-control {
    gap: 15px;
  }
  .pt-control h3 {
    font-size: 16px;
    margin: 0 0 10px 0;
  }
  .pt-gauge {
    width: 300px;
  }
  .pt-note {
    padding: 15px 30px;
  }
  .pt-warning {
    gap: 10px;
  }
  .pt-warning svg {
    width: 30px;
    height: 30px;
  }
  .pt-title {
    font-size: 28px;
  }
  .hero-content {
    margin-top: 90px !important;
  }
  .scroll-down {
    bottom: 30px;
  }
  .hero-content h1 {
    font-size: 40px;
  }
  .hero-section {
    height: 333px;
  }
  .hero-content p {
    font-size: 18px;
  }
  .printtheory-form-container .form-title {
    font-size: 28px;
  }
  .custom-radio {
    padding: 15px 20px;
  }
  .label-text {
    font-size: 16px;
  }
  .contact-section {
    max-width: 100%;
    margin: 100px auto;
  }
  .contact-title {
    font-size: 28px;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .btn-submit-form {
    font-size: 18px !important;
    padding: 15px 0 !important;
  }
}
@media screen and (max-width: 520px) {
  .categories-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .print-theory-section {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media screen and (max-width: 480px) {
  .pt-left {
    gap: 30px;
  }
  .brand-upload-wrap {
    align-items: flex-start;
    gap: 0;
    flex-direction: column;
  }
  .upload-label {
    margin-bottom: 20px !important;
  }
}
@media screen and (max-width: 375px) {
  .pt-left {
    gap: 10px;
  }
  .knob {
    width: 75px;
    height: 75px;
  }
  .knob-arrow {
    width: 55px;
    height: 55px;
    top: 12px;
    left: 10px;
  }
  .pt-control {
    gap: 5px;
  }
  .mobile-knob-value-title, .mobile-knob-value {
    font-size: 12px;
  }
}
