body {
  font-family: 'Poppins', sans-serif;
  background-color: #F9F5F4;
  color: #333;
  margin: 0;
  padding: 0;
  text-align: center;
  overflow-x: hidden; /* Allow vertical scrolling but prevent horizontal */
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

header {
  padding: 20px;
  position: relative;
}

.logo {
  position: absolute;
  top: 20px;
  left: 40px;
  width: 109px;
  height: 46px;
}

.back-btn {
  position: absolute;
  top: 50px;
  left: 10px;
  font-size: 50px;
  border: none;
  background: none;
  cursor: pointer;
  color: #B22222;
  z-index: 10;
}

h1 {
  color: #B22222;
  font-size: 2.5rem;
  font-weight: unset;
  font-family: "Poppins";
  margin-bottom: 5px;
}

header p {
  font-size: 1.6rem;
  font-weight: bold;
  color: #B22222;
}

.form-section {
  margin: 0;
  margin-bottom: 20px;
  padding: 30px;
  text-align: left;
}

.form-section h2 {
  color: #B22222;
  font-weight: unset;
  font-size: 3rem;
  margin-bottom: 20px;
}

form label {
  display: block;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 5px;
}

form textarea {
  width: 100%;
  height: 200px;
  line-height: 24px; /* Hauteur de ligne */
  padding: 10px;
  font-size: 16px;
  background-image: repeating-linear-gradient(
    to bottom,
    #fff,
    #fff 40px,
    #ccc 23px,
    #ccc 24px);
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.radio-group input {
  margin-right: 5px;
  color: #B22222 ;
}

.add-btn {
  background-color: #B22222;
  color: white;
  border: none;
  font-size: 1em;
  border-radius: 20%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  margin: 10px 0;
}

.form-container {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  position: relative;
  margin: 0 auto;
  box-sizing: border-box;
}
.submit-btn {
  background-color: #B22222;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  margin-top: 30px;
  margin-bottom: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
  text-decoration: none;
  display: inline-block;
  font-size: 1.2rem;
  float: right;
}

.submit-btn:hover {
  background-color: #a11d1d;
  text-align: end;
}

.submit-btn[disabled], .big-button[disabled] {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
}

.big-button {
  background-color: #B22222;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  margin-top: 60px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.2em;
  transition: background 0.3s;
  display: block;
  width: 80%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  text-decoration: none;
}

.big-button:hover {
  background-color: #a11d1d;
}

.textarea-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: #8b4a3c;
}

.line-1 {
  top: 40px;
  width: 100%;
  max-width: 800px;
}

.line-2 {
  top: 80px;
  width: 100%;
  max-width: 800px;
}

.line-3 {
  top: 120px;
  width: 100%;
  max-width: 800px;
}

.styled-textarea {
  width: 100%;
  max-width: 800px;
  height: 140px; /* ← pour avoir bien 3 lignes + padding */
  padding: 10px;
  border: none;
  resize: none;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  line-height: 40px;
  background: transparent;
  color: #3a1e1a;
  caret-color: #8b4a3c;
  outline: none;
  z-index: 1;
  position: relative;
  box-sizing: border-box;
}



.textarea-wrapper::after::after {
  content: "";
  position: absolute;
  top: 120px;
  left: 0;
  width: 75%;
  height: 1.5px;
  background-color: #8b4a3c;
}

.styled-input {
  width: 100%;
  max-width: 800px;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-bottom: 2px solid #8b4a3c;
  background-color: transparent;
  color: #3a1e1a;
  outline: none;
  font-family: Poppins, Inter, sans-serif;
  box-sizing: border-box;
}

.back-btn {
  text-decoration: none;
}

.invalid-url {
  border-bottom: 2px solid #ff0000 !important;
  background-color: rgba(255, 0, 0, 0.05);
}

.url-tooltip {
  color: #ff0000;
  font-size: 14px;
  margin-top: 5px;
  margin-bottom: 10px;
  font-style: italic;
  max-width: 60%;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.label1, .label2 {
  font-weight: 400;
  font-family: "Poppins", Inter, sans-serif;
  font-size: 1.5rem;
  line-height: 1.3;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 1024px) {
  .form-section h2 {
    font-size: 2.5rem;
  }

  .label1, .label2 {
    font-size: 1.3rem;
  }

  .submit-btn {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1.3rem;
  }

  .form-section h2 {
    font-size: 2rem;
  }

  .label1, .label2 {
    font-size: 1.2rem;
  }

  .back-btn {
    font-size: 40px;
  }

  .submit-btn {
    float: none;
    display: block;
    margin: 30px auto;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 1.7rem;
  }

  header p {
    font-size: 1.1rem;
  }

  .form-section h2 {
    font-size: 1.7rem;
  }

  .label1, .label2 {
    font-size: 1.1rem;
  }

  .back-btn {
    font-size: 30px;
    top: 30px;
  }

  .form-section {
    padding: 15px;
  }

  .form-container {
    padding: 10px;
  }

  .styled-textarea, .styled-input {
    font-size: 14px;
  }

  .radio-group {
    flex-direction: column;
    gap: 10px;
  }
}
