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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(rgba(248, 249, 250, 0.95), rgba(245, 245, 245, 0.95)),
              url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80') center/cover fixed;
  color: #2C3E50;
  min-height: 100vh;
  padding: 40px 20px;
}

#form-container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 61, 165, 0.1);
  padding: 60px;
  border: 1px solid rgba(0, 61, 165, 0.15);
}

/* Header */
.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: rgba(0, 61, 165, 0.1);
  border: 2px solid #003DA5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #003DA5;
}

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: #003DA5;
  margin-bottom: 10px;
  font-weight: 600;
}

.form-subtitle {
  color: #6C757D;
  font-size: 15px;
}

/* Progress Bar */
.progress-wrapper {
  margin: 30px 0 40px;
}

.progress-bar {
  background: rgba(0, 61, 165, 0.1);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #003DA5, #0051D5);
  width: 14%;
  transition: width 0.4s ease;
  border-radius: 999px;
}

/* Form Steps */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-row {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #2C3E50;
  margin-bottom: 10px;
  font-size: 15px;
}

.required-asterisk {
  color: #003DA5;
  margin-left: 4px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(245, 245, 245, 0.8);
  border: 1px solid rgba(0, 61, 165, 0.2);
  border-radius: 6px;
  color: #2C3E50;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #003DA5;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(0, 61, 165, 0.1);
}

input.invalid {
  border-color: #ff6b6b;
}

select {
  cursor: pointer;
}

/* Date input group */
.date-input-group {
  display: flex;
  gap: 10px;
}

.date-input-group input {
  flex: 1;
}

/* Radio Groups */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-option {
  background: rgba(245, 245, 245, 0.6);
  border: 1px solid rgba(0, 61, 165, 0.15);
  padding: 16px 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-option:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 61, 165, 0.3);
}

.radio-option input[type="radio"] {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #003DA5;
  flex-shrink: 0;
}

.radio-option label {
  cursor: pointer;
  flex: 1;
  font-size: 15px;
  color: #2C3E50;
  user-select: none;
}

.radio-option:has(input:checked) {
  background: rgba(0, 61, 165, 0.1);
  border-color: #003DA5;
}

/* Checkbox */
.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-wrapper input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #003DA5;
}

.checkbox-wrapper label {
  flex: 1;
  font-size: 14px;
  color: #6C757D;
  cursor: pointer;
}

/* Style du lien dans le checkbox */
.checkbox-wrapper label a {
  color: #003DA5;
  text-decoration: none;
  transition: all 0.2s ease;
}

.checkbox-wrapper label a:hover {
  color: #002B73;
  text-decoration: underline;
}

/* Form Footer */
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 61, 165, 0.1);
}

.btn-form {
  padding: 14px 32px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(0, 61, 165, 0.3);
  color: #6C757D;
}

.btn-outline:hover:not(:disabled) {
  background: rgba(0, 61, 165, 0.1);
  border-color: #003DA5;
  color: #003DA5;
}

.btn-primary {
  background: #003DA5;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 61, 165, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: #002B73;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 61, 165, 0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-error {
  color: #003DA5;
  font-size: 13px;
  display: none;
  font-weight: 500;
}

.field-error {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 6px;
  display: none;
}

.form-legal {
  margin-top: 20px;
  font-size: 13px;
  color: #6C757D;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  #form-container {
    padding: 40px 30px;
  }

  .form-title {
    font-size: 26px;
  }

  .form-footer {
    flex-direction: column;
    gap: 20px;
  }

  .btn-form {
    width: 100%;
  }

  .date-input-group {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  body {
    padding: 20px 10px;
  }

  #form-container {
    padding: 30px 20px;
  }

  .form-title {
    font-size: 22px;
  }
}