/* Form Styles */

.contact-form-page {
  max-width: 1000px;
  padding: 3rem 4vw;
}

/* Progress Indicator - Removed form-progress container */

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 48px;
  height: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg-light);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-light);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.progress-step.active .step-number {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 122, 24, 0.3);
}

.progress-step.completed .step-number {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.progress-step.completed .step-number::after {
  content: '✓';
  font-size: 1.2rem;
}

.step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  text-align: center;
  transition: color 0.3s ease;
}

.progress-step.active .step-label {
  color: var(--primary);
  font-weight: 700;
}

.progress-step.completed .step-label {
  color: #10b981;
}

.progress-line {
  flex: 1;
  height: 3px;
  background: var(--border);
  margin: 0 0.5rem;
  position: relative;
  top: -24px;
  z-index: 1;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-light);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-blue));
  border-radius: 10px;
  transition: width 0.4s ease;
  width: 16.66%;
}

.progress-percentage {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.15), rgba(30, 64, 175, 0.15));
  border: 3px solid var(--primary);
  box-shadow: 0 4px 12px rgba(255, 122, 24, 0.2);
  color: var(--primary);
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: #fff;
  flex-shrink: 0;
}

@media (max-width: 968px) {
  .contact-form-page {
    padding: 1.5rem 0.75rem;
  }
  
  .contact-form-header {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }
  
  .contact-form-header h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 0.75rem;
  }
  
  .contact-form-header p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .progress-percentage {
    right: 10px;
    width: 55px;
    height: 55px;
    font-size: 1.1rem;
    top: 10px;
  }
  
  .progress-steps {
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
  }
  
  .step-number {
    width: 36px;
    height: 36px;
    aspect-ratio: 1;
    font-size: 0.9rem;
    flex-shrink: 0;
  }
  
  .step-label {
    font-size: 0.7rem;
  }
  
  .form-step {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
  }
  
  .form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }
  
  .form-section h2 {
    font-size: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .form-section h2 svg {
    width: 20px;
    height: 20px;
  }
  
  .step-description {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
    width: 100%;
  }
  
  .form-group label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: block;
    color: var(--text-dark);
    line-height: 1.4;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 1rem;
    min-height: 48px;
    width: 100%;
    border-radius: 8px;
    border: 2px solid var(--border);
    -webkit-appearance: none;
    appearance: none;
  }
  
  .form-group select {
    background-position: right 1rem center;
    padding-right: 2.75rem;
  }
  
  .form-group textarea {
    min-height: 100px;
    padding: 1rem;
    line-height: 1.5;
  }
  
  .form-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 0;
    margin-top: 1rem;
  }
  
  .form-row:first-child {
    margin-top: 0;
  }
  
  .form-row .form-group {
    margin-bottom: 0;
    width: 100%;
  }
  
  .form-row .form-group:first-child {
    margin-top: 0;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
  
  .form-actions .btn {
    width: 100%;
    min-height: 48px;
  }
  
  .step-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
  
  .step-actions .btn {
    width: 100%;
    min-height: 48px;
  }
  
  .checkbox-group {
    margin-top: 1.5rem;
  }
  
  .checkbox-label {
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0.75rem;
    border-radius: 8px;
  }
  
  .checkbox-label input[type="checkbox"] {
    min-width: 20px;
    min-height: 20px;
    margin-right: 0.75rem;
  }
  
  .radio-group {
    gap: 0.75rem;
  }
  
  .radio-label {
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
    min-width: 80px;
  }
  
  .radio-group-vertical .radio-label {
    min-width: auto;
    width: 100%;
  }
  
  .radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
    aspect-ratio: 1;
    box-sizing: border-box;
  }
  
  .radio-label input[type="radio"]:checked::after {
    width: 8px;
    height: 8px;
    aspect-ratio: 1;
  }
  
  .radio-label span {
    font-size: 0.9rem;
  }
}

/* Form Steps */
.form-step {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
}

.form-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.5s ease;
}

.form-step.completed {
  opacity: 0.95;
}

.form-step.step-completed {
  border-left: 4px solid #10b981;
  background: rgba(16, 185, 129, 0.02);
  border-color: rgba(16, 185, 129, 0.2);
}

.form-step.step-completed .form-section {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-step.active:not(.step-completed) .form-section {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-step.step-completed .form-section h2 {
  color: #059669;
}

.form-step.step-completed .form-section h2::after {
  content: ' ✓';
  color: #10b981;
  font-weight: 700;
  margin-left: 0.5rem;
  font-size: 1.2rem;
}

.form-step.active:not(.step-completed) {
  background: rgba(255, 122, 24, 0.03);
  border-left: 4px solid var(--primary);
  border-color: rgba(255, 122, 24, 0.2);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-section h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-section h2 svg {
  color: var(--primary);
  flex-shrink: 0;
}

.step-description {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  margin-top: -0.5rem;
}

.step-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.step-actions .btn {
  min-width: 120px;
}

.step-notification {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(30, 64, 175, 0.1));
  border: 2px solid #10b981;
  border-radius: 8px;
  padding: 0.875rem 1.25rem;
  margin-bottom: 1rem;
  color: #059669;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.step-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.step-notification span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Form Error Message */
.form-error-message {
  background: #fee2e2;
  border: 2px solid #ef4444;
  border-radius: 8px;
  padding: 1rem;
  color: #991b1b;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.form-group input.error,
.form-group select.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.radio-label.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.radio-label.error input[type="radio"] {
  border-color: #ef4444;
}

/* Success Message */
.form-success {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(30, 64, 175, 0.05));
  border-radius: 16px;
  animation: fadeInUp 0.6s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  aspect-ratio: 1;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}

.form-success h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
  border: none;
  padding: 0;
  justify-content: center;
}

.success-message {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.success-details {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.success-details p {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.success-details ul {
  list-style: none;
  padding: 0;
}

.success-details li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text);
}

.success-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
  font-size: 1.2rem;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.contact-form-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-form-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.contact-form-header p {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto;
}

.property-form {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.form-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

/* Ensure form-groups in step 6 are stacked vertically, not in a row */
.form-step[data-step="6"] .form-group {
  display: block;
  width: 100%;
  margin-bottom: 1.5rem;
}

.form-step[data-step="6"] .form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #fff;
  color: var(--text-dark);
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%231e293b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group input:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}

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

.checkbox-group {
  margin-top: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 0.25rem;
  cursor: pointer;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--border);
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
}

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

.checkbox-label input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.checkbox-label input[type="checkbox"]:hover {
  border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.1);
}

.checkbox-label span {
  color: var(--text);
  line-height: 1.6;
}

/* Radio Button Groups */
.radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.radio-group-vertical {
  flex-direction: column;
  gap: 0.75rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  font-weight: normal;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 100px;
}

.radio-group-vertical .radio-label {
  flex: none;
  width: 100%;
  min-width: auto;
}

.radio-label:hover {
  border-color: var(--primary);
  background: rgba(255, 122, 24, 0.02);
}

.radio-label input[type="radio"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  aspect-ratio: 1;
  cursor: pointer;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--border);
  border-radius: 50%;
  position: relative;
  transition: all 0.2s ease;
  margin: 0;
  box-sizing: border-box;
}

.radio-label input[type="radio"]:checked {
  border-color: var(--primary);
  background: #fff;
}

.radio-label input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  aspect-ratio: 1;
  background: var(--primary);
  border-radius: 50%;
}

.radio-label input[type="radio"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.1);
}

.radio-label:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  background: rgba(255, 122, 24, 0.05);
}

.radio-label span {
  color: var(--text);
  line-height: 1.5;
  font-size: 0.95rem;
}

.required-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

.recaptcha-placeholder {
  background: var(--bg-light);
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: var(--text-light);
}

.recaptcha-placeholder p {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.recaptcha-placeholder small {
  font-size: 0.85rem;
}

.form-submit {
  margin-top: 2rem;
  text-align: center;
}

.contact-form-section {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 3rem;
}

.contact-form-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

/* Mobile Form Styles */
@media (max-width: 968px) {
  .contact-form-page {
    padding: 2rem 1.5rem;
  }
  
  .contact-form-header {
    margin-bottom: 2rem;
  }
  
  .contact-form-header h1 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }
  
  .form-progress {
    padding: 1.5rem 1rem;
  }
  
  .progress-steps {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .progress-step {
    flex: 0 0 calc(33.333% - 0.5rem);
    margin-bottom: 1rem;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    aspect-ratio: 1;
    font-size: 0.95rem;
    flex-shrink: 0;
  }
  
  .step-label {
    font-size: 0.75rem;
  }
  
  .progress-line {
    display: none;
  }
  
  .property-form {
    padding: 2rem 1.5rem;
  }
  
  .form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }
  
  .form-section h2 {
    font-size: 1.3rem;
    flex-wrap: wrap;
  }
  
  .form-section h2 svg {
    width: 20px;
    height: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 0;
    margin-top: 1.5rem;
  }
  
  .form-section .form-row:first-of-type {
    margin-top: 1rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 48px;
    padding: 1rem;
  }
  
  .form-group label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  .step-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .step-actions .btn {
    width: 100%;
    min-height: 48px;
  }
  
  .success-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .success-actions .btn {
    width: 100%;
    min-height: 48px;
  }
  
  .contact-form-section {
    padding: 1.25rem;
  }
  
  .contact-form-section h3 {
    font-size: 1.2rem;
  }
  
  .contact-form {
    gap: 1.5rem;
  }
  
  .form-step {
    padding: 1.25rem;
  }
  
  .form-section h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .contact-form-page {
    padding: 1rem 0.5rem;
  }
  
  .contact-form-header {
    margin-bottom: 1.5rem;
    padding: 0;
  }
  
  .contact-form-header h1 {
    font-size: 1.5rem;
  }
  
  .contact-form-header p {
    font-size: 0.9rem;
  }
  
  .progress-percentage {
    right: 8px;
    width: 50px;
    height: 50px;
    font-size: 1rem;
    top: 8px;
  }
  
  .form-step {
    padding: 1rem;
    margin-bottom: 1.25rem;
    border-radius: 10px;
  }
  
  .form-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
  }
  
  .form-section h2 {
    font-size: 1.1rem;
    gap: 0.5rem;
  }
  
  .form-section h2 svg {
    width: 18px;
    height: 18px;
  }
  
  .step-description {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .form-group {
    margin-bottom: 1.25rem;
  }
  
  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 0.875rem;
    min-height: 44px;
  }
  
  .form-row {
    gap: 1.25rem;
  }
  
  .checkbox-label {
    font-size: 0.85rem;
    padding: 0.625rem;
  }
  
  .checkbox-label input[type="checkbox"] {
    min-width: 18px;
    min-height: 18px;
    margin-right: 0.625rem;
  }
  
  .radio-group {
    gap: 0.5rem;
  }
  
  .radio-label {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    min-width: 70px;
  }
  
  .radio-group-vertical .radio-label {
    min-width: auto;
    width: 100%;
    padding: 0.75rem;
  }
  
  .radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
    aspect-ratio: 1;
    box-sizing: border-box;
  }
  
  .radio-label input[type="radio"]:checked::after {
    width: 7px;
    height: 7px;
    aspect-ratio: 1;
  }
  
  .radio-label span {
    font-size: 0.85rem;
  }
}

