/* Variables (using CSS custom properties) */
:root {
  --primary-color: #112144;
  --secondary-color: #d4af37;
  --success-color: #28a745;
  --error-color: #dc3545;
  --text-color: #333;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #6c757d;
  --border-color: #dee2e6;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--light-gray);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
}

/* Header */
.header {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem 0;
  box-shadow: var(--box-shadow);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.logo-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

.agent-info {
  font-size: 0.9rem;
  font-weight: 400;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-info a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info a:hover {
  color: var(--secondary-color);
}

/* Form */
.form-container {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  margin: 1rem auto;
  max-width: 700px;
  width: 100%;
}

.form-title {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.form-intro {
  text-align: center;
  color: var(--dark-gray);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--primary-color);
}

.form-label .required {
  color: var(--error-color);
  margin-left: 0.25rem;
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--dark-gray);
  margin-top: 0.25rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-family: var(--font-family);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(17, 33, 68, 0.25);
}

.form-control.error {
  border-color: var(--error-color);
}

.form-control.error:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.checkbox-container .checkbox-label {
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.error-message {
  color: var(--error-color);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-family);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #0a152d; /* Darker primary */
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  background-color: #7a889e;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #b59220; /* Darker secondary */
}

.btn-secondary:active {
  transform: translateY(1px);
}

.sticky-button-container {
  position: sticky;
  bottom: 0;
  background-color: white;
  padding: 1rem 0;
  margin-top: 1rem;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.sticky-button-container .btn {
  width: 100%;
}

/* Success message */
.success-message {
  background-color: rgba(40, 167, 69, 0.15);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: #155724;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  text-align: center;
}

.success-message h3 {
  margin-bottom: 0.75rem;
  color: #155724;
}

.success-message p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-left: 1rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .footer-logo {
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .form-container {
    padding: 1.5rem;
  }
}