*,
*::before,
*::after{
  box-sizing:border-box;
}

:root{
  --page-max-width:680px;
  --side-padding:12px;
  --input-height:38px;

  --border-color:#d7dce2;
  --text-color:#1f2937;
  --muted-color:#4b5563;
  --background-color:#ffffff;

  --button-color:#FF5757;
  --button-hover:#e84b4b;
  --soft-bg:#f9fafb;
}

html,
body{
  margin:0;
  padding:0;
  width:100%;
  background:var(--background-color);
  color:var(--text-color);
  font-family:Arial, Helvetica, sans-serif;
  overflow-x:hidden;
}

.page{
  width:100%;
  max-width:var(--page-max-width);
  margin:0 auto;
  padding:16px var(--side-padding) 24px;
}

.registration-form{
  width:100%;
  padding:22px;
  border:1px solid #eef0f3;
  border-radius:18px;
  background:var(--soft-bg);
}

.registration-form h2{
  margin:0 0 20px 0;
  font-size:25px;
  line-height:1.2;
  color:var(--text-color);
  text-align:center;
}

.form-grid{
  display:grid;
  grid-template-columns:1fr;
  row-gap:12px;
  width:100%;
}

.form-field{
  display:flex;
  flex-direction:column;
  width:100%;
}

.form-field label,
.form-field legend{
  margin-bottom:7px;
  font-size:14px;
  font-weight:700;
  color:var(--text-color);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select{
  width:100%;
  height:var(--input-height);
  padding:0 13px;
  border:1px solid var(--border-color);
  border-radius:9px;
  font-size:15px;
  color:var(--text-color);
  background:#fff;
}

.form-field input:focus,
.form-field select:focus{
  outline:none;
  border-color:#111827;
}

fieldset.form-field{
  margin:0;
  padding:0;
  border:0;
  min-width:0;
}

.full-width{
  grid-column:auto;
}

.phone-wrapper{
  display:flex;
  width:100%;
}

.phone-wrapper select{
  width:92px;
  min-width:92px;
  padding:0 8px;
  border:1px solid var(--border-color);
  border-right:none;
  border-radius:9px 0 0 9px;
  appearance:none;
  cursor:pointer;
  font-size:14px;
}

.phone-wrapper input[type="tel"]{
  flex:1;
  min-width:0;
  border-radius:0 9px 9px 0;
}

.checkbox-group,
.single-checkbox{
  display:flex;
  flex-direction:column;
  gap:9px;
}

.checkbox-item{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin:0;
  font-size:14px;
  font-weight:400;
  line-height:1.35;
  color:var(--muted-color);
  cursor:pointer;
}

.checkbox-item input[type="checkbox"]{
  width:17px;
  height:17px;
  margin-top:1px;
  flex-shrink:0;
}

.form-actions{
  display:flex;
  justify-content:center;
  margin-top:4px;
}

.form-actions button{
  width:100%;
  height:42px;
  padding:0 22px;
  border:none;
  border-radius:10px;
  background:var(--button-color);
  color:#fff;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  transition:background .2s ease, transform .1s ease;
}

.form-actions button:hover{
  background:var(--button-hover);
}

.form-actions button:active{
  transform:scale(.98);
}

.message{
  padding:18px;
  border-radius:10px;
  font-size:16px;
  line-height:1.5;
}

.message.confirmation{
  background:#f0fff4;
  border:1px solid #b7ebc6;
  color:#1f6f3d;
}

.message.erreur{
  background:#fff5f5;
  border:1px solid #f3b3b3;
  color:#b42318;
}

@media (max-width:480px){
  .page{
    padding:12px 8px 20px;
  }

  .registration-form,
  .ar-section{
    padding:18px 14px;
    border-radius:14px;
  }

  .registration-form h2{
    font-size:22px;
  }

  .phone-wrapper select{
    width:86px;
    min-width:86px;
    font-size:13px;
  }

  .checkbox-item{
    font-size:13px;
  }
}

/* =========================
   enregistrement
========================= */

.message{
    padding:20px;
    border-radius:10px;
    font-size:18px;
    line-height:1.5;
}
.message.confirmation{
    background:#f0fff4;
    border:1px solid #b7ebc6;
    color:#1f6f3d;
}
.message.erreur{
    background:#fff5f5;
    border:1px solid #f3b3b3;
    color:#b42318;
}