/* Contact form page */
.contact-alert {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.3);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    animation: slideInDown 0.5s ease-out;
  }
  
  .contact-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
  }
  
  .contact-alert .alert-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .contact-alert .alert-icon {
    font-size: 24px;
    flex-shrink: 0;
    animation: bounceIn 0.6s ease-out;
  }
  
  .contact-alert.alert-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.3);
  }
  
  
  @keyframes slideInDown {
    from {
      transform: translateY(-20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  @keyframes bounceIn {
    0% {
      transform: scale(0);
      opacity: 0;
    }
    50% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  .form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6 .4.4.4-.4'/%3e%3cpath d='m6 6v2.5'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
  }
  
  .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
  }
  
  #submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  #contact-alert-container {
    min-height: 0;
  }
  
  /* Form Labels */
  .form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
  }
  
  .form-field-wrapper {
    display: flex;
    flex-direction: column;
  }
  
  /* Error Summary */
  .error-summary-container {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.3);
    color: #ffffff;
    margin-bottom: 24px;
    animation: slideInDown 0.5s ease-out;
    position: relative;
  }
  
  .error-summary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .error-summary-icon {
    font-size: 24px;
    flex-shrink: 0;
  }
  
  .error-summary-header strong {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
  }
  
  .error-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .error-summary-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    line-height: 1.6;
    word-wrap: break-word;
  }
  
  .error-summary-list li::before {
    content: '•';
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 1px;
  }
  
  /* Submit Button Loading State */
  #submit-btn {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
  }
  
  #submit-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
  }
  
  .submit-loader {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border: 4px solid rgba(0, 0, 0, 0.15);
    border-top-color: #1F2A2E;
    border-right-color: #1F2A2E;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 10;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
  }
  
  #submit-btn.loading .submit-loader {
    display: block;
  }
  
  #submit-btn.loading .btn-text {
    opacity: 0;
    visibility: hidden;
  }
  
  #submit-btn.loading .btn-icon {
    opacity: 0;
    visibility: hidden;
  }
  
  @keyframes spin {
    0% {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
      transform: translate(-50%, -50%) rotate(360deg);
    }
  }
  
  /* Enhanced Field Errors */
  .field-error {
    display: none;
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 6px;
    padding-left: 4px;
    align-items: center;
    gap: 6px;
  }
  
  .field-error::before {
    content: '⚠';
    font-size: 14px;
    margin-right: 4px;
  }
  
  .field-error.show {
    display: flex;
  }
  
  .form-control.is-invalid {
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.05);
  }
  
  .form-control.is-invalid:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
    background-color: rgba(255, 107, 107, 0.05);
  }
