/* Design Tokens matching the company brand (Navy & Gold) */
:root {
  --brand-navy: #0f223f;        /* Deep navy from logo */
  --brand-gold: #c5a880;        /* Gold/tan from logo */
  --brand-gold-hover: #b4966e;
  --brand-navy-hover: #0a172c;
  
  --bg-color: #fcfcfd;          /* Soft light gray background from logo */
  --card-bg: #ffffff;
  --text-main: #1e293b;         /* Dark gray for readability */
  --text-muted: #64748b;        /* Slate gray */
  --border-color: #e2e8f0;      /* Border gray */
  --border-focus: #c5a880;      /* Gold focus border */
  
  --error-color: #ef4444;       /* Alert red */
  --error-bg: #fef2f2;
  --success-color: #10b981;     /* Success green */
  --success-bg: #ecfdf5;
}

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

body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  padding: 20px 12px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

/* Logo Header */
.logo-header {
  text-align: center;
  margin-bottom: 16px;
}

.company-logo {
  max-height: 120px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Form Card */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 8px;
  text-align: center;
}

.subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}

/* Form Layout */
.form-group {
  margin-bottom: 22px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--brand-navy);
}

.required {
  color: var(--error-color);
}

/* Inputs & Textareas */
input[type="text"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 14px;
  font-size: 16px; /* Prevents auto-zoom on iOS */
  font-family: inherit;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background-color: #ffffff;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.2);
}

input[type="tel"] {
  letter-spacing: 1.5px;
}

.help-text {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Buttons */
.btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--brand-navy);
  color: #ffffff;
  margin-top: 16px;
}

.btn-primary:hover {
  background-color: var(--brand-navy-hover);
}

.btn-primary:disabled {
  background-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background-color: var(--brand-gold);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--brand-gold-hover);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 10px 16px;
  margin-top: 14px;
}

.btn-outline:hover {
  background-color: #f8fafc;
  color: var(--text-main);
  border-color: #cbd5e1;
}

/* Honeypot hidden fields */
.honeypot-container {
  display: none !important;
  visibility: hidden;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Location Loading & Status */
.location-loading {
  font-size: 0.85rem;
  color: var(--brand-gold);
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
}

.location-status-box {
  background-color: #f8fafc;
  border: 2px dashed var(--brand-gold);
  border-radius: 10px;
  padding: 16px;
  margin-top: 14px;
}

.status-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.address-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 12px;
}

.details-grid {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.status-label {
  font-weight: 600;
}

.maps-link-container {
  text-align: center;
  margin-top: 10px;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

.maps-link {
  color: var(--brand-navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}

.maps-link:hover {
  text-decoration: underline;
}

/* Alerts and Messages */
.error-message {
  color: var(--error-color);
  font-size: 0.8rem;
  margin-top: 6px;
  font-weight: 600;
  min-height: 1.2rem;
}

.form-error-box {
  background-color: var(--error-bg);
  border: 1px solid var(--error-color);
  color: var(--error-color);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

/* Success State styling */
.success-card {
  text-align: center;
  padding: 40px 24px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background-color: var(--success-bg);
  border: 2px solid var(--success-color);
  color: var(--success-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

.success-text {
  font-size: 0.95rem;
  color: var(--brand-navy);
  margin-top: 8px;
  font-weight: 600;
  line-height: 1.5;
}

/* Utility classes */
.hidden {
  display: none !important;
}
