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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8f9fb;
  color: #1a1a2e;
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
}

.lang-bar {
  width: 100%;
  max-width: 580px;
  padding: 14px 0 0;
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.lang-bar a {
  color: #a0a3b1;
  text-decoration: none;
  padding: 3px 7px;
  border-radius: 4px;
  transition: all 0.15s;
  font-weight: 500;
}

.lang-bar a:hover {
  color: #1a1a2e;
  background: rgba(26,26,46,0.04);
}

.lang-bar a.active {
  color: #1a1a2e;
  background: rgba(26,26,46,0.06);
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: 580px;
  padding: 28px 32px 40px;
}

.header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8eaef;
}

.header h1 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  letter-spacing: -0.01em;
}

.header .empresa {
  font-size: 13px;
  color: #6b7084;
  margin-top: 4px;
}

.header .empresa span {
  color: #1a1a2e;
  font-weight: 500;
}

.morada {
  font-size: 12px;
  color: #9ba0b3;
  margin-top: 2px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 12px;
  font-weight: 500;
  color: #6b7084;
  letter-spacing: 0.01em;
}

.field input,
.field textarea,
.field select {
  font-family: inherit;
  font-size: 13px;
  padding: 9px 11px;
  border: 1px solid #dfe1e8;
  border-radius: 8px;
  background: #fff;
  color: #1a1a2e;
  transition: all 0.15s;
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #c0c3cf;
}

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

.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%236b7084' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 28px;
}

/* Phone field with country code */
.phone-group {
  display: flex;
  gap: 8px;
}

.phone-group select {
  width: 110px;
  flex-shrink: 0;
  font-size: 13px;
  padding: 9px 8px;
  border: 1px solid #dfe1e8;
  border-radius: 8px;
  background: #fff;
  color: #1a1a2e;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%236b7084' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 22px;
  outline: none;
  transition: all 0.15s;
}

.phone-group select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
}

.phone-group input {
  flex: 1;
  min-width: 0;
}

.btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  background: #1a1a2e;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 4px;
  letter-spacing: 0.01em;
}

.btn:hover {
  background: #2d2d4a;
}

.btn:active {
  background: #13132a;
  transform: scale(0.99);
}

.btn:disabled {
  background: #9ba0b3;
  cursor: not-allowed;
}

.privacy {
  margin-top: 20px;
  font-size: 11px;
  color: #b0b4c3;
  text-align: center;
  letter-spacing: 0.01em;
}

.success-msg {
  padding: 32px 0;
  text-align: center;
}

.success-msg p {
  font-size: 14px;
  color: #1a1a2e;
  font-weight: 500;
}

.success-msg .check {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8f5e9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.success-msg .check svg {
  width: 20px;
  height: 20px;
  stroke: #2e7d32;
}

.error-msg {
  font-size: 12px;
  color: #dc2626;
  display: none;
}

@media (max-width: 480px) {
  .container {
    padding: 20px 16px 32px;
  }
  .row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
