/* ---- Página de Pedido de Orçamento ---- */

/* Banner */
.orc-banner {
  background: linear-gradient(135deg, #0077be 0%, #005a99 55%, #003d6b 100%);
  padding: 3.5rem 5vw 3rem;
  text-align: center;
  color: #fff;
}

.orc-banner h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.orc-banner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  margin: 0;
}

/* Section */
.orc-section {
  background: #f5f7fa;
  padding: 3rem 2rem 4rem;
}

.orc-container {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  align-items: start;
}

/* Info lateral */
.orc-info {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  position: sticky;
  top: 5.5rem;
}

.orc-info h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a2332;
  margin-bottom: 0.6rem;
}

.orc-info > p {
  font-size: 0.93rem;
  color: #4a5568;
  line-height: 1.65;
  margin-bottom: 1.8rem;
}

/* Lista de contactos */
.orc-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.orc-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.orc-contact-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #e8f4fd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.orc-contact-list li > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.orc-contact-list strong {
  font-size: 0.8rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.orc-contact-list a,
.orc-contact-list span {
  font-size: 0.95rem;
  color: #1a2332;
  text-decoration: none;
}

.orc-contact-list a:hover {
  color: #0077be;
}

/* Promessas */
.orc-promise {
  border-top: 1px solid #f0f4f8;
  padding-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.orc-promise-item {
  font-size: 0.88rem;
  color: #1a8a3c;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Formulário */
.orc-form-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.orc-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.orc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.orc-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.orc-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a2332;
}

.required {
  color: #dc3545;
}

.optional {
  font-size: 0.78rem;
  font-weight: 400;
  color: #6c757d;
  background: #f0f4f8;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
}

.orc-field input,
.orc-field textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #dde3ec;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1a2332;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}

.orc-field input::placeholder,
.orc-field textarea::placeholder {
  color: #a0aab4;
}

.orc-field input:focus,
.orc-field textarea:focus {
  border-color: #0077be;
  box-shadow: 0 0 0 3px rgba(0,119,190,0.12);
}

.orc-field input.is-invalid,
.orc-field textarea.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220,53,69,0.1);
}

.orc-field textarea {
  resize: vertical;
  min-height: 130px;
}

.orc-field input[type="file"] {
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.orc-field input[type="file"]::file-selector-button {
  margin-right: 0.8rem;
  padding: 0.45rem 0.9rem;
  border: none;
  border-radius: 6px;
  background: #e8f4fd;
  color: #0077be;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.orc-field input[type="file"]::file-selector-button:hover {
  background: #d3eafb;
}

.orc-hint {
  font-size: 0.78rem;
  color: #6c757d;
}

/* Checkbox */
.orc-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.orc-checkbox input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #0077be;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.orc-checkbox label {
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.5;
  cursor: pointer;
}

.orc-checkbox label a {
  color: #0077be;
  text-decoration: underline;
}

/* Botão de envio */
.orc-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, #0077be 0%, #005a99 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 6px 18px rgba(0,119,190,0.35);
  align-self: flex-start;
}

.orc-submit:hover {
  background: linear-gradient(135deg, #005a99 0%, #003d6b 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,119,190,0.45);
}

.orc-submit:active {
  transform: translateY(0);
}

.orc-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Alertas */
.orc-alert {
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.orc-alert-success {
  background: #d4f1df;
  border: 1px solid #a3d9b8;
  color: #1a5c2e;
}

.orc-alert-error {
  background: #fde8e8;
  border: 1px solid #f5b8b8;
  color: #7a1e1e;
}

.orc-alert-icon {
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orc-alert-success .orc-alert-icon {
  background: #1a8a3c;
  color: #fff;
}

.orc-alert-error .orc-alert-icon {
  background: #dc3545;
  color: #fff;
}

.orc-alert strong {
  display: block;
  margin-bottom: 0.2rem;
}

.orc-alert p,
.orc-alert ul {
  margin: 0;
  font-size: 0.92rem;
}

.orc-alert ul {
  padding-left: 1.1rem;
}

/* Responsive */
@media (max-width: 820px) {
  .orc-container {
    grid-template-columns: 1fr;
  }

  .orc-info {
    position: static;
  }
}

@media (max-width: 500px) {
  .orc-row {
    grid-template-columns: 1fr;
  }

  .orc-form-wrap,
  .orc-info {
    padding: 1.5rem 1.25rem;
  }

  .orc-submit {
    width: 100%;
    justify-content: center;
  }
}
