/* ====== INVOICE SECTION BACKGROUND ====== */
.invoice-section-wrapper {
  background-color: #0a0a0c;
  color: #ffffff;
  padding: 40px 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* Apply normal font size to form container and all its children */
.invoice-section,
.invoice-section * {
  font-size: 1rem !important;
  line-height: 1.5 !important;
  font-weight: normal !important;
}

/* Override for form title - keep it big and bold */
.form-title {
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
}

/* ====== INVOICE FORM CONTAINER ====== */
.invoice-section {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  padding: 40px 25px;
  margin: 0 auto;
  max-width: 500px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* FORM STYLES */
.form-container {
  width: 100%;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500 !important;
  font-size: 14px !important;
}

.form-input {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-size: 1rem !important;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #0ea5ff;
  background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-select {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-size: 1rem !important;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-select:focus {
  outline: none;
  border-color: #0ea5ff;
  background: rgba(255, 255, 255, 0.08);
}

.vat-options {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

.vat-option {
  flex: 1;
  padding: 15px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.05);
}

.vat-option:hover {
  border-color: rgba(14, 165, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.vat-option.selected {
  border-color: #0ea5ff;
  background: rgba(14, 165, 255, 0.1);
}

.vat-option input {
  margin-right: 8px;
}

.vat-option label {
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-weight: normal !important;
}

.summary-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-total {
  font-size: 18px !important;
  font-weight: bold !important;
  color: #0ea5ff;
}
/* Make total amount bold */
.summary-row.summary-total {
  font-size: 18px !important;
  font-weight: 800 !important; /* Use 800 for extra bold */
  color: #0ea5ff !important;
}

/* Specifically target both label and value */
.summary-row.summary-total > span {
  font-weight: 800 !important;
}

.btn-generate {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #0ea5ff, #7c3aed);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-generate:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(14, 165, 255, 0.3);
}

.btn-generate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#loading {
  display: none;
  text-align: center;
  margin: 20px 0;
  padding: 20px;
  background: rgba(14, 165, 255, 0.1);
  border-radius: 8px;
  color: #0ea5ff;
  font-size: 16px;
  border: 1px solid rgba(14, 165, 255, 0.2);
}

.note {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 20px;
  text-align: center;
  line-height: 1.5;
}

/* HIDDEN PDF TEMPLATE */
#pdfTemplate {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 794px;
  min-height: 1123px;
  background: white;
  font-family: 'Arial Unicode MS', Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #000;
}

/* CUSTOM SELECT STYLES */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-selected {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-select-selected::after {
  content: "▼";
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  transform: scaleY(0.5);
}

.custom-select-wrapper:focus-within .custom-select-selected,
.custom-select-selected:hover {
  border-color: #0ea5ff;
  background: rgba(255, 255, 255, 0.08);
}

.custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-top: 5px;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
}

.custom-select-option {
  padding: 12px 18px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover {
  background: rgba(14, 165, 255, 0.1);
  color: white;
}

.custom-select-option.active {
  background: rgba(14, 165, 255, 0.2);
  color: #0ea5ff;
}
/* ====== MOBILE VERSION ====== */
@media (max-width: 768px) {
  .invoice-section-wrapper {
    padding: 20px 0;
  }
  
  .invoice-section {
    width: 100vw !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding: 25px 15px !important;
    margin: 0 auto !important;
  }
  
  .vat-options {
    flex-direction: column;
  }
  
  .form-title {
    font-size: 1.8rem !important; /* Slightly smaller on mobile */
  }
}

/* ====== DESKTOP STYLES ====== */
@media (min-width: 768px) {
  .invoice-section {
    padding: 50px 40px;
    border-radius: 28px;
    margin: 0 auto;
    max-width: 600px;
  }
}