/* ============================================================
   TCO – Telemóvel e formulário de registo
   ============================================================ */

/* Indicativo + telemóvel na mesma linha (registo, dados pessoais, checkout) */
.tco-tel-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.tco-tel-wrap select {
  flex: 0 0 46%;
  max-width: 210px;
  min-width: 0;
}
.tco-tel-wrap input {
  flex: 1 1 auto;
  min-width: 0;
}

/* ------------------------------------------------------------
   Formulário de registo de empresa
   ------------------------------------------------------------ */

.tco-reg-head,
.tco-register .tco-login-link,
.tco-register #customer-form {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.tco-reg-head {
  margin-bottom: 18px;
}
.tco-reg-head h1 {
  font-size: 24px;
  font-weight: 600;
  color: #111;
  margin: 0 0 6px;
  text-transform: none;
  letter-spacing: 0;
}
.tco-reg-head p {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  margin: 0;
}

.tco-register .tco-login-link {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
}
.tco-register .tco-login-link a {
  color: #111;
  font-weight: 600;
  text-decoration: underline;
}

/* Títulos das secções */
.tco-section-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #888;
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}

/* Etiqueta por cima do campo, campo a toda a largura */
.tco-register #customer-form .form-group.row {
  display: block;
  margin: 0 0 14px;
}
.tco-register #customer-form .form-group.row > * {
  width: 100%;
  max-width: 100%;
  flex: none;
  float: none;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
}
.tco-register #customer-form .form-control-label {
  display: block;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #222;
  padding: 0 0 5px;
}
.tco-register #customer-form .form-control-comment {
  display: none;
}

/* Obrigatório / opcional */
.tco-register .tco-req::after {
  content: ' *';
  color: #c0392b;
}
.tco-register .tco-opt {
  font-weight: 400;
  color: #999;
}

/* Campos */
.tco-register #customer-form .form-control {
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  height: 44px;
  font-size: 14px;
  color: #111;
  box-shadow: none;
}
.tco-register #customer-form .form-control:focus {
  border-color: #111;
  outline: none;
}
.tco-register #customer-form .input-group .form-control,
.tco-register #customer-form .input-group-btn .btn {
  height: 44px;
}

/* Ficheiros (fotos e registo de atividade) */
.tco-register input.tco-file {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px dashed #c8c8c8;
  border-radius: 3px;
  background: #fafafa;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}
.tco-register input.tco-file::file-selector-button {
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 8px 14px;
  margin-right: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
}
.tco-register input.tco-file::-webkit-file-upload-button {
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 8px 14px;
  margin-right: 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.tco-register .tco-file-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.tco-register .tco-file-list li {
  font-size: 12px;
  color: #2e7d32;
  padding: 2px 0;
}
.tco-register .tco-file-list li::before {
  content: '\2713  ';
}
.tco-register .tco-file-error {
  font-size: 12px;
  color: #c0392b;
  margin-top: 4px;
}
.tco-register .tco-file-error:empty {
  display: none;
}

/* Dicas e nota de obrigatórios */
.tco-register .tco-hint {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}
.tco-register .tco-req-note {
  font-size: 12px;
  color: #888;
  margin: 6px 0 14px;
}
.tco-register .tco-req-note span {
  color: #c0392b;
}

/* Caixas de seleção */
.tco-register #customer-form .custom-checkbox,
.tco-register #customer-form .custom-checkbox label {
  font-size: 13px;
  color: #444;
  line-height: 1.45;
}

/* Botão */
.tco-register #customer-form .form-footer {
  text-align: left;
  padding: 0;
}
.tco-register #customer-form .form-footer .btn {
  width: 100%;
  height: 48px;
  font-size: 14px;
  letter-spacing: .05em;
}

@media (max-width: 575px) {
  .tco-tel-wrap select {
    flex-basis: 40%;
  }
  .tco-reg-head h1 {
    font-size: 20px;
  }
  /* 16px evita que o iPhone faça zoom ao tocar num campo */
  .tco-tel-wrap select,
  .tco-tel-wrap input,
  .tco-register #customer-form .form-control {
    font-size: 16px;
  }
  .tco-register input.tco-file {
    font-size: 14px;
  }
}
