/* ============================================
   Contact Page Specific Styles
   Becker Texas Properties
   ============================================ */

/* Contact Hero Section */
.contact-hero {
  padding-top: 120px;
  padding-bottom: 3rem;
  background: radial-gradient(circle at center, rgba(0, 40, 104, 0.1) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-red);
}

.contact-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 2rem;
}

.contact-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--texas-red), var(--texas-white), var(--texas-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Contact Section Layout */
.contact-section {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  padding: 2.5rem;
}

.form-title {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form input[type="checkbox"] {
  width: auto;
  padding: 0;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 0.25rem;
  color: var(--text-primary);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--texas-red);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 2px rgba(191, 10, 48, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23B0B0B0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Checkbox Styling */
.checkbox-group {
  margin: 1rem 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.checkbox-label:hover {
  color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--border-light);
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:hover {
  border-color: var(--texas-red);
  background: rgba(0, 0, 0, 0.6);
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--texas-red);
  border-color: var(--texas-red);
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 0.125rem;
  left: 0.375rem;
  width: 0.375rem;
  height: 0.625rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(191, 10, 48, 0.2);
}

/* Form Actions */
.form-actions {
  margin-top: 1rem;
}

.form-actions .btn {
  min-width: 200px;
}

/* Form Messages */
.form-message {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 0.25rem;
  display: none;
  animation: fadeIn 0.5s ease;
}

.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
}

.form-message.error {
  background: rgba(191, 10, 48, 0.1);
  border: 1px solid rgba(191, 10, 48, 0.3);
  color: var(--texas-red);
}

.form-message.show {
  display: block;
}

/* Contact Information */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-card {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.contact-info-card h3 {
  color: var(--texas-red);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-item {
  margin-bottom: 1.5rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-item p {
  color: var(--text-secondary);
  margin: 0;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  line-height: 1.5;
}

.benefits-list li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--texas-red);
  font-size: 0.8rem;
}

.heritage-note {
  background: linear-gradient(135deg, rgba(191, 10, 48, 0.05), rgba(0, 40, 104, 0.05));
  border-color: rgba(191, 10, 48, 0.2);
}

.heritage-note p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin: 0;
  font-weight: 300;
}

/* Loading State */
.form-loading {
  pointer-events: none;
  opacity: 0.6;
}

.form-loading .btn-primary {
  position: relative;
}

.form-loading .btn-primary::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-info-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding-top: 100px;
    padding-bottom: 2rem;
  }
  
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-section {
    padding: 3rem 1rem;
  }
}

@media (max-width: 480px) {
  .contact-title {
    font-size: 2rem;
  }
  
  .contact-subtitle {
    font-size: 1rem;
  }
  
  .form-title {
    font-size: 1.5rem;
  }
  
  .contact-form-wrapper {
    padding: 1rem;
  }
  
  .form-actions .btn {
    width: 100%;
  }
}