/* ==========================================================================
   PORTO MAIS - DESIGN SYSTEM & BASE STYLES
   ========================================================================== */

:root {
  /* Color Palette */
  --primary: #0f2b5c;
  --primary-light: #18448c;
  --primary-dark: #071735;
  --accent: #ff6b35;
  --accent-hover: #e85d2a;
  --accent-light: #fff0eb;
  --text-dark: #1a202c;
  --text-muted: #718096;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  
  /* Fonts */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & Borders */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  /* Shadows */
  --shadow-lg: 0 20px 40px rgba(7, 23, 53, 0.25);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: radial-gradient(circle at 10% 20%, var(--primary-light) 0%, var(--primary-dark) 90%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

h1 {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary-dark);
  line-height: 1.2;
}

/* Page Wrapper */
.form-page-wrapper {
  width: 100%;
  max-width: 540px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Quoting Form Card */
.form-container-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Logo Box */
.form-logo-box {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.form-logo-box .logo {
  height: 65px;
  object-fit: contain;
}

/* Welcome Header */
.form-welcome-header {
  text-align: center;
  margin-bottom: 32px;
}

.form-welcome-header h1 {
  margin-bottom: 10px;
}

.form-welcome-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Form Styles */
.quote-form .form-group {
  margin-bottom: 20px;
}

.quote-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.optional-label {
  font-weight: 400;
  color: var(--text-muted);
}

.input-wrapper {
  position: relative;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  opacity: 0.7;
}

.quote-form input[type="text"],
.quote-form input[type="tel"] {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
  background-color: #fcfdfe;
}

.quote-form input:focus {
  outline: none;
  border-color: var(--primary-light);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(24, 68, 140, 0.1);
}

/* Form Layout Rows */
.form-row {
  display: flex;
  gap: 16px;
}

.col-70 {
  flex: 0 0 calc(70% - 8px);
}

.col-30 {
  flex: 0 0 calc(30% - 8px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 28px;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: center;
}

.btn-accent {
  background-color: var(--accent);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
  margin-top: 8px;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.btn-accent:active {
  transform: translateY(0);
}

.btn-block {
  width: 100%;
}

.btn-submit {
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
  }
}

/* Trust Footer elements inside form */
.form-trust-footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-pill i {
  color: var(--primary-light);
}

/* Footer Credits outside card */
.form-page-footer {
  margin-top: 24px;
  text-align: center;
}

.form-page-footer p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */

@media (max-width: 480px) {
  .form-page-wrapper {
    padding: 16px 8px;
  }
  
  .form-container-card {
    padding: 28px 20px;
    border-radius: var(--border-radius-sm);
  }
  
  .form-welcome-header h1 {
    font-size: 1.6rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .col-70, .col-30 {
    flex: 0 0 100%;
  }
}
