/* =========================
   RESET & BASE
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f6fb;
  color: #1f2937;
  line-height: 1.5;
}

/* =========================
   CONTAINER
========================= */
.container {
  max-width: 520px;
  margin: 40px auto;
  background: #ffffff;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* =========================
   HEADINGS
========================= */
h1, h2, h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 600;
}

h1 {
  font-size: 22px;
}

h3 {
  font-size: 16px;
}

/* =========================
   FORM ELEMENTS
========================= */
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

input[type="text"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  outline: none;
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #2563eb;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* =========================
   CHECKBOX
========================= */
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.checkbox input {
  width: 16px;
  height: 16px;
}

/* =========================
   BUTTONS
========================= */
button {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
}

button:hover {
  opacity: 0.95;
}

/* =========================
   RESULT LINK
========================= */
.result-box {
  margin-top: 16px;
}

.result-box input {
  font-size: 13px;
  background: #f9fafb;
}

/* =========================
   PREVIEW PAGE
========================= */
.preview-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 12px;
}

.preview-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.preview-desc {
  font-size: 14px;
  color: #4b5563;
}

/* =========================
   FOOTER / NOTE
========================= */
.note {
  margin-top: 14px;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

/* =========================
   MOBILE OPTIMIZATION
========================= */
@media (max-width: 640px) {

  body {
    background: #eef1f7;
  }

  .container {
    margin: 16px;
    padding: 16px;
    border-radius: 10px;
  }

  h1 {
    font-size: 20px;
  }

  h3 {
    font-size: 15px;
  }

  label {
    font-size: 12px;
  }

  input[type="text"],
  input[type="url"],
  textarea,
  select {
    font-size: 14px;
    padding: 10px;
  }

  textarea {
    min-height: 70px;
  }

  button {
    font-size: 15px;
    padding: 14px;
    border-radius: 12px;
  }

  .checkbox {
    font-size: 14px;
  }

  .preview-image {
    border-radius: 8px;
  }

  .preview-title {
    font-size: 17px;
  }

  .preview-desc {
    font-size: 13px;
  }

  .note {
    font-size: 11px;
  }
}
/* =========================
   MOBILE DEVICE TUNING
========================= */
@media (max-width: 768px) {

  /* iOS & Android text scaling fix */
  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* Prevent iOS zoom on input */
  input,
  textarea,
  select,
  button {
    font-size: 16px;
  }

  /* Container lebih nyaman di HP */
  .container {
    margin: 14px;
    padding: 16px;
  }

  /* Button lebih “tap friendly” */
  button {
    min-height: 48px;
  }

  /* Preview image tidak overflow */
  img {
    max-width: 100%;
    height: auto;
  }
}
