/* CV Generator Form Styles */

#cvgen-form { 
  font-family: 'Outfit', Arial, sans-serif;
  margin-top: 28px;
  margin-bottom: 30px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 #06377b0a;
  padding: 28px 30px;
  max-width: 750px;
  margin: 0 auto;
}

/* Stepper Navigation */
#cvgen-form #cvgen-stepper { 
  margin-bottom: 40px; 
  text-align: center; 
}

#cvgen-form .cvgen-stepper-dot {
  display: inline-block;
  padding: 4px 18px;
  border-radius: 20px;
  margin: 5px 4px;
  font-family: 'Outfit', Arial, sans-serif;
  font-weight: 400;
  background: #e5e5ef;
  color: #06377B;
  font-size: 20px;
  transition: 0.2s;
}

#cvgen-form .cvgen-stepper-dot.active { 
  background: #06377B; 
  color: #fff; 
}

/* Headings */
#cvgen-form .cvgen-step h2 {
  margin-top: 34px;
  color: #06377B;
  font-family: 'Outfit', Arial, sans-serif;
  letter-spacing: -1px;
  font-weight: bold;
  font-size: 1.3rem;
}

#cvgen-form .cvgen-step:not(:first-child) h2 { 
  margin-top: 44px; 
}

/* Labels */
#cvgen-form label,
#cvgen-form .cvgen-row-label,
#cvgen-form b,
#cvgen-form .cvgen-step > label,
#cvgen-form .cvgen-step label strong {
  color: #06377B !important;
  font-family: 'Outfit', Arial, sans-serif;
  display: inline-block;
  width: 100%;
  margin: 10px 0 6px 0;
  font-size: 1.09em;
  font-weight: 700;
}

#cvgen-form .cvgen-row-label {
  margin-bottom: 7px !important;
  margin-top: 9px !important;
  font-size: 1.05em;
}

/* Date Row */
#cvgen-form .cvgen-date-row {
  display: flex;
  gap: 18px;
  width: 100%;
  margin-bottom: 12px;
  flex-direction: row;
}

#cvgen-form .cvgen-date-row input[type="date"] {
  width: 100%;
  margin-bottom: 0;
  font-size: 1rem !important;
}

/* Form Inputs */
#cvgen-form input[type="file"] { 
  color: #f0f0f0; 
}

#cvgen-form input[type="text"], 
#cvgen-form input[type="email"], 
#cvgen-form input[type="date"], 
#cvgen-form input[type="file"], 
#cvgen-form select, 
#cvgen-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #e0e0ee;
  border-radius: 13px;
  padding: 15px 20px;
  margin: 6px 0 10px 0;
  font-size: 28px;
  background: #fff;
  font-family: 'Outfit', Arial, sans-serif;
  transition: border .2s;
  min-width: 0;
}

#cvgen-form input[type="text"]:focus, 
#cvgen-form input[type="email"]:focus, 
#cvgen-form input[type="date"]:focus, 
#cvgen-form select:focus, 
#cvgen-form textarea:focus {
  border-color: #06377B;
  outline: none;
}

#cvgen-form textarea {
  width: 100%;
  min-height: 50px;
  resize: vertical;
  font-size: 28px;
}

/* Repeater Rows */
#cvgen-form .cvgen-skill-row, 
#cvgen-form .cvgen-exp-row,
#cvgen-form .cvgen-edu-row, 
#cvgen-form .cvgen-cert-row,
#cvgen-form .cvgen-lang-row {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

#cvgen-form .cvgen-row { 
  display: flex; 
  gap: 12px; 
  width: 100%; 
}

#cvgen-form .cvgen-row > input { 
  flex: 1 1 0%; 
  min-width: 0; 
}

/* Buttons Row */
#cvgen-form .cvgen-btns-row { 
  display: flex; 
  justify-content: space-between; 
  margin: 18px 0 10px; 
  gap: 12px; 
  border-top: 1px solid #06377B; 
  padding-top: 20px;
}

/* Buttons */
#cvgen-form button, 
#cvgen-form .cvgen-btn {
  font-family: 'Outfit', Arial, sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 1px;
  border-radius: 11px;
  cursor: pointer;
  padding: 15px 33px;
  margin-top: 12px;
  margin-bottom: 2px;
  min-width: 130px;
  outline: none;
  border: none;
  transition: all .2s;
}

#cvgen-form button[disabled], 
#cvgen-form .cvgen-btn[disabled] { 
  opacity: 0.5; 
  cursor: not-allowed;
}

#cvgen-form button, 
#cvgen-form .cvgen-btn-primary {
  background: #06377B;
  color: #fff;
  border: none;
  box-shadow: none;
}

#cvgen-form button:hover,
#cvgen-form .cvgen-btn-primary:hover,
#cvgen-form .cvgen-btn-primary:focus { 
  background: #fff; 
  color: #06377B !important; 
  outline: 2px solid #06377B !important; 
}

#cvgen-form .cvgen-btn-secondary {
  background: #fff;
  color: #06377B;
  outline: 2px solid #06377B;
}

#cvgen-form .cvgen-btn-secondary:hover, 
#cvgen-form .cvgen-btn-secondary:focus { 
  background: #06377B; 
  color: #fff !important; 
  outline: none;
}

/* Delete Button */
#cvgen-form .cvgen-del-btn {
  font-size: 1.00em;
  padding: 8px 20px;
  background: #fff;
  color: #06377B;
  border: 2px solid #cfd4e2;
  margin-left: auto;
  margin-top: 2px;
  margin-bottom: 2px;
  border-radius: 6px;
  font-weight: 600;
  min-width: 58px;
  width: auto;
  box-shadow: none;
  transition: 0.13s;
  display: inline-block;
}

#cvgen-form .cvgen-del-btn:hover {
  background: #06377B;
  color: #fff !important;
  border: 2px solid #06377B;
}

/* Mobile Responsive */
@media (max-width: 800px) {
  #cvgen-form { 
    padding: 10px;
  }
  
  #cvgen-form .cvgen-stepper-dot { 
    font-size: 16px; 
  }
  
  #cvgen-form input[type="text"], 
  #cvgen-form input[type="email"], 
  #cvgen-form input[type="date"], 
  #cvgen-form select, 
  #cvgen-form textarea { 
    font-size:19px; 
  }
  
  #cvgen-form button, 
  #cvgen-form .cvgen-btn { 
    font-size:17px;
  }
  
  #cvgen-form .cvgen-row,
  #cvgen-form .cvgen-date-row { 
    flex-direction: column !important;
    gap: 9px !important;
  }
  
  #cvgen-form .cvgen-row > input,
  #cvgen-form .cvgen-date-row input[type="date"] {
    width: 100% !important;
    min-width: 0;
    flex: 1 1 0%;
  }
}

/* Validation Styles */
#cvgen-form input:invalid:not(:placeholder-shown),
#cvgen-form textarea:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
  background-color: #fff5f5;
}

#cvgen-form input.cvgen-error,
#cvgen-form textarea.cvgen-error {
  border-color: #dc3545 !important;
  background-color: #fff5f5 !important;
  animation: shake 0.3s;
}

/* Shake animation dla błędnych pól */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* Komunikat błędu */
.cvgen-field-error {
  color: #dc3545;
  font-size: 0.9em;
  margin-top: -8px;
  margin-bottom: 10px;
  display: block;
  font-weight: 400;
}

/* Character Counter */
.cvgen-char-counter {
  font-size: 0.85em;
  color: #666;
  text-align: right;
  margin-top: -6px;
  margin-bottom: 8px;
  font-family: 'Outfit', Arial, sans-serif;
  font-weight: 400;
}

.cvgen-char-counter.cvgen-counter-warning {
  color: #ff9800;
  font-weight: 500;
}

.cvgen-char-counter.cvgen-counter-danger {
  color: #dc3545;
  font-weight: 600;
}