* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: #fff;
}

/* ── Hero ── */
.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .65)),
    url('https://images.unsplash.com/photo-1519003722824-194d4455a60c?q=80&w=1600&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.hero h1 {
  font-size: 70px;
  letter-spacing: 4px;
}

.hero p {
  font-size: 22px;
  max-width: 800px;
  margin: 20px auto;
}

/* ── Button ── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  margin-top: 15px;
}

/* ── Sections ── */
section {
  padding: 70px 10%;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 36px;
}

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #1e293b;
  padding: 25px;
  border-radius: 12px;
}

/* ── Calculator ── */
.calc {
  max-width: 560px;
  margin: auto;
  background: #1e293b;
  padding: 30px;
  border-radius: 12px;
}

.calc-label {
  display: block;
  margin-top: 16px;
  margin-bottom: 4px;
  font-size: 13px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .5px;
}

select,
input[type="number"],
input[type="date"],
button {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #fff;
  font-size: 15px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

button {
  margin-top: 20px;
  background: #2563eb;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background .2s;
}

button:hover { background: #1d4ed8; }

/* Loader */
.loader {
  text-align: center;
  margin-top: 16px;
  color: #94a3b8;
  font-size: 15px;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

/* Duty result */
.duty-result {
  margin-top: 20px;
}

.usd-rate {
  text-align: right;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.duty-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.duty-table th,
.duty-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #334155;
}

.duty-table th {
  color: #94a3b8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.duty-table tfoot tr td {
  font-weight: 700;
  font-size: 17px;
  color: #38bdf8;
  border-top: 2px solid #334155;
  border-bottom: none;
  padding-top: 14px;
}

/* Error */
.duty-error {
  margin-top: 16px;
  background: #450a0a;
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.result {
  margin-top: 15px;
  font-size: 24px;
  text-align: center;
}

/* ── Footer ── */
footer {
  background: #020617;
  text-align: center;
  padding: 30px;
}

/* ── Hero buttons ── */
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

/* ── Calc page (shipping & gomruk) ── */
.calc-page {
  min-height: 100vh;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.calc-header {
  text-align: center;
  margin-bottom: 30px;
  max-width: 560px;
}

.calc-header h1 {
  font-size: 32px;
  margin: 10px 0 8px;
}

.calc-header p {
  color: #94a3b8;
  font-size: 15px;
}

.back-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover { text-decoration: underline; }

/* ── Shipping result ── */
.shipping-result {
  margin-top: 20px;
  border: 1px solid #334155;
  border-radius: 10px;
  overflow: hidden;
}

.shipping-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #334155;
  font-size: 15px;
}

.shipping-row:last-child { border-bottom: none; }

.total-row {
  background: #0f172a;
  font-weight: 700;
  font-size: 17px;
  color: #38bdf8;
}

.calc-footer-btn {
  text-align: center;
}

/* ── Gömrük 2-sütunlu layout ── */
.gomruk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 1000px;
  align-items: start;
}

.result-col {
  position: sticky;
  top: 30px;
}

.duty-empty {
  text-align: center;
  padding: 60px 20px;
  color: #475569;
}

.duty-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.duty-empty p {
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .gomruk-grid {
    grid-template-columns: 1fr;
  }
  .result-col {
    position: static;
  }
}

/* ── Gömrük form 4+4 layout ── */
.gomruk-wrap {
  max-width: 860px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.form-col {
  display: flex;
  flex-direction: column;
}

.btn-full {
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.btn-full:hover { background: #1d4ed8; }

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
