@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

/* BeHost/Hostiko Brand Colors */
:root {
  --primary-color: #ffffff;
  --secondary-color: #000000;
  --accent: #f0d9c3;
  --text-color: #000000;
  --light-green: #c4f0c3;
  --border-color: #d9d9d9;
  --muted: #666666;
  --error: #dc2626;
  --success: #16a34a;
}

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

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--text-color);
  background: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", serif;
  letter-spacing: -0.03em;
  color: var(--secondary-color);
  font-weight: 700;
}

h1 {
  font-size: 56px;
  line-height: 66px;
}

h2 {
  font-size: 40px;
  line-height: 54px;
}

h3 {
  font-size: 32px;
  line-height: 40px;
}

h4 {
  font-size: 28px;
  line-height: 36px;
}

h5 {
  font-size: 24px;
  line-height: 30px;
}

h6 {
  font-size: 20px;
  line-height: 26px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Card Styles */
.card {
  background: var(--primary-color);
  border: 1px solid var(--secondary-color);
  border-radius: 0;
  padding: 34px 40px 44px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: all .2s ease-in-out;
}

.card:hover {
  outline: 2px solid var(--secondary-color);
  outline-offset: 5px;
  background: var(--accent);
}

/* Checkout Layout */
.checkout .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 20px;
}

@media (min-width: 992px) {
  .checkout .row {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Product Section */
.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  height: 60px;
  width: auto;
}

.brand-info h2 {
  font-size: 28px;
  line-height: 36px;
  margin: 0 0 8px 0;
}

.brand-info p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.hosting-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  padding: 16px;
  background: var(--accent);
  border: 1px solid var(--secondary-color);
}

.price-label {
  color: var(--text-color);
  font-weight: 600;
  font-size: 16px;
}

.price-value {
  font-weight: 800;
  color: var(--secondary-color);
  font-size: 24px;
  font-family: "Playfair Display", serif;
}

.product-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border: 1px solid var(--secondary-color);
  margin: 24px 0;
  background: var(--accent);
}

.product-features {
  margin: 24px 0;
  padding: 24px;
  background: var(--light-green);
  border: 1px solid var(--secondary-color);
}

.product-features h4 {
  font-size: 20px;
  margin-bottom: 16px;
}

.product-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-features li:before {
  content: "✓";
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 18px;
}

/* Form Styles */
.field {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.field label {
  font-weight: 600;
  font-size: 14px;
}

.field input,
.field textarea,
.field select {
  padding: 17px 16px;
  border: 1px solid var(--secondary-color);
  border-radius: 0;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  background: var(--primary-color);
  transition: all .2s ease-in-out;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--secondary-color);
  background: var(--accent);
}

.field input::placeholder {
  color: var(--secondary-color);
  font-weight: 500;
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.field small {
  color: var(--muted);
  font-size: 12px;
}

/* Hosting Plans */
.plans-list {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.btn {
  appearance: none;
  border: 1px solid var(--secondary-color);
  border-radius: 0;
  padding: 17px 36px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .2s ease-in-out;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
  height: 58px;
}

.btn-primary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.btn-outline {
  background: transparent;
  color: var(--secondary-color);
}

.btn-outline:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.plan-btn {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.plan-btn.active {
  background: var(--accent);
  outline: 2px solid var(--secondary-color);
  outline-offset: 3px;
}

.plan-btn:hover {
  background: var(--accent);
}

.plan-name {
  font-weight: 600;
  font-size: 18px;
}

.plan-price {
  font-weight: 700;
  font-size: 20px;
  font-family: "Playfair Display", serif;
}

.plan-badge {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Summary Section */
.summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
  padding: 20px;
  background: var(--light-green);
  border: 1px solid var(--secondary-color);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-label {
  color: var(--muted);
  font-size: 14px;
}

.summary-value {
  font-weight: 700;
  font-size: 16px;
}

/* Payment Element */
#payment-section {
  margin: 24px 0;
}

#payment-element {
  margin: 16px 0;
  min-height: 200px;
  border: 1px solid var(--secondary-color);
  padding: 20px;
  background: var(--primary-color);
}

/* Checkbox */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
  font-size: 14px;
}

.checkbox input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: 600;
}

.checkbox a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mt-4 {
  margin-top: 32px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.mb-4 {
  margin-bottom: 32px;
}

/* Payment Security Badges */
.payment-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
  padding: 16px;
  background: var(--primary-color);
  border: 1px solid var(--border-color);
}

.payment-security img {
  height: 30px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.payment-security img:hover {
  opacity: 1;
}

.security-text {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.security-text i {
  color: var(--success);
  font-size: 16px;
}

/* Guarantee Badge */
.guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 20px;
  padding: 16px;
  background: var(--accent);
  border: 1px solid var(--secondary-color);
}

.guarantee i {
  font-size: 20px;
  color: var(--secondary-color);
}

/* Error & Success Messages */
.field-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
  padding: 8px 12px;
  background: #fee2e2;
  border: 1px solid var(--error);
}

.field-success {
  font-size: 12px;
  color: var(--success);
  margin-top: 4px;
  padding: 8px 12px;
  background: #d1fae5;
  border: 1px solid var(--success);
}

/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top: 2px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* NIP Input with Loader */
.nip-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.nip-loader {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* Company Fields */
.company-fields {
  margin-top: 20px;
  padding: 24px;
  background: var(--light-green);
  border: 1px solid var(--secondary-color);
}

.company-fields.loaded {
  background: var(--accent);
}

.company-fields .field input[readonly],
.company-fields .field textarea[readonly] {
  background: var(--primary-color);
  color: var(--text-color);
  cursor: default;
  opacity: 0.9;
}

/* Coupon Input */
.coupon-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.coupon-input-wrapper input {
  flex: 1;
  text-transform: uppercase;
}

.coupon-input-wrapper button {
  white-space: nowrap;
  padding: 17px 24px;
  font-size: 14px;
}

/* Footer */
.mini-legal {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 24px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
}

.mini-legal a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.mini-legal a:hover {
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 20px 16px;
  }

  h1 {
    font-size: 40px;
    line-height: 48px;
  }

  h2 {
    font-size: 32px;
    line-height: 40px;
  }

  h3 {
    font-size: 24px;
    line-height: 32px;
  }

  .brand-info h2 {
    font-size: 20px;
    line-height: 28px;
  }

  .card {
    padding: 24px 20px;
  }

  .product-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    height: 50px;
  }

  .coupon-input-wrapper {
    flex-direction: column;
  }

  .coupon-input-wrapper button {
    width: 100%;
  }

  .payment-security {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 32px;
    line-height: 40px;
  }

  h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .price-value {
    font-size: 20px;
  }

  .plan-btn {
    padding: 16px 20px;
  }
}
