/* Compact Modern Forms - Tight spacing, modern design */

.compact-form-wrapper {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1rem 0;
  min-height: 100vh;
}

/* Compact Hero */
.compact-hero {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem 0;
}

.compact-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

/* Compact Tabs */
.compact-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.compact-tab {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  overflow: hidden;
}

.compact-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.compact-tab.active {
  border: 2px solid #dc3545;
  transform: translateY(-2px);
}

.compact-tab-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  gap: 0.5rem;
}

.compact-tab-link i {
  font-size: 1rem;
  color: #6c757d;
}

.compact-tab.active .compact-tab-link i {
  color: #dc3545;
}

.compact-tab-link span {
  font-weight: 500;
  font-size: 0.9rem;
}

/* Form Container */
.compact-form-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 1.5rem;
}

/* Form Grid */
.compact-form-grid {
  display: grid;
  gap: 1rem;
}

/* Compact Sections */
.compact-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #e9ecef;
}

.compact-section-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #dc3545;
}

.compact-section-header i {
  background: #dc3545;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  font-size: 0.8rem;
}

.compact-section-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

/* Form Elements */
.compact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.compact-group {
  margin-bottom: 0.75rem;
}

.compact-label {
  display: block;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
}

.compact-input,
.compact-select,
.compact-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
  background: white;
  color: #333;
  font-family: inherit;
}

.compact-input:focus,
.compact-select:focus,
.compact-textarea:focus {
  outline: none;
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.compact-input::placeholder,
.compact-textarea::placeholder {
  color: #999;
}

.compact-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1em 1em;
  padding-right: 2rem;
}

.compact-textarea {
  min-height: 60px;
  resize: vertical;
  font-family: inherit;
}

/* Alerts */
.compact-alert {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.compact-alert-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.compact-alert-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

/* reCAPTCHA */
.compact-captcha {
  text-align: center;
  margin: 0.75rem 0;
}

/* Submit */
.compact-submit {
  text-align: center;
  margin-top: 1rem;
}

.compact-submit-btn {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.compact-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .compact-form-wrapper {
    padding: 0.5rem 0;
  }
  
  .compact-hero {
    padding: 1rem 0;
  }
  
  .compact-title {
    font-size: 1.5rem;
  }
  
  .compact-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .compact-tab {
    max-width: 200px;
    margin: 0 auto;
  }
  
  .compact-form-container {
    margin: 0 1rem;
    padding: 1rem;
  }
  
  .compact-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .compact-section {
    padding: 0.75rem;
  }
}

@media (max-width: 576px) {
  .compact-form-container {
    margin: 0 0.5rem;
    padding: 0.75rem;
  }
  
  .compact-title {
    font-size: 1.25rem;
  }
  
  .compact-section-header {
    flex-direction: column;
    text-align: center;
  }
  
  .compact-section-header i {
    margin-right: 0;
    margin-bottom: 0.25rem;
  }
}
