/*
Theme Name: Astra Child
Description: Child theme of Astra with custom contact form
Template: astra
Version: 1.0.0
*/

/* Import parent theme styles */
@import url("../astra/style.css");

/* Body background with gradient derived from form colors */
body {
  background: linear-gradient(
    135deg,
    rgba(96, 91, 229, 0.1) 0%,
    rgba(139, 13, 241, 0.1) 100%
  );
  min-height: 100vh;
}

/* Center the form container */
.custom-contact-form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
}

/* Custom Form Styles */
.custom-contact-form {
  min-width: 550px;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  background: linear-gradient(135deg, #605be5 0%, #8b0df1 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(96, 91, 229, 0.3);
  color: white;
}
.custom-contact-form h3 {
  text-align: center;
  margin-bottom: 25px;
  color: white;
  font-size: 24px;
  font-weight: 600;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: white;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

.captcha-container {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.captcha-question {
  font-size: 16px;
  margin-bottom: 10px;
}

.captcha-input {
  width: 100px !important;
  text-align: center;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  border-radius: 8px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: white;
  color: #605be5;
  transform: translateY(-2px);
}

.form-message {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
}

.form-message.success {
  background: rgba(40, 167, 69, 0.9);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.form-message.error {
  background: rgba(220, 53, 69, 0.9);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    background: linear-gradient(
      135deg,
      rgba(96, 91, 229, 0.05) 0%,
      rgba(139, 13, 241, 0.05) 100%
    );
  }

  .custom-contact-form {
    min-width: auto;
    max-width: 100%;
    margin: 10px;
    padding: 20px;
  }

  .custom-contact-form-wrapper {
    min-height: auto;
    padding: 10px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .custom-contact-form h3 {
    font-size: 20px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 14px 15px;
  }

  .captcha-input {
    width: 80px !important;
    font-size: 16px;
  }

  .submit-btn {
    font-size: 16px;
    padding: 16px;
  }
}

/* Admin Dashboard Styles */
.contact-dashboard {
  margin: 20px 0;
}

.dashboard-filters {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.filter-row {
  display: flex;
  gap: 15px;
  align-items: end;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
}

.btn-primary {
  background: #605be5;
  color: white;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-warning {
  background: #ffc107;
  color: #212529;
}

.contacts-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contacts-table th,
.contacts-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.contacts-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
}

.contacts-table tr:hover {
  background: #f8f9fa;
}

.action-buttons {
  display: flex;
  gap: 5px;
}

.action-buttons .btn {
  padding: 4px 8px;
  font-size: 12px;
}

.spam-row {
  background: #ffeaa7 !important;
  opacity: 0.7;
}

.pagination {
  margin-top: 20px;
  text-align: center;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 2px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #605be5;
}

.pagination .current {
  background: #605be5;
  color: white;
  border-color: #605be5;
}
