/**
 * Agency Manager Frontend Styles
 *
 * @package AgencyManager
 * @since 1.0.0
 *
 * Version: 1.0.7
 */

/* Contact Form Styles */
.agency-contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.agency-contact-form h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

.agency-form-group {
  margin-bottom: 20px;
}

.agency-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #555;
}

.agency-form-group input,
.agency-form-group textarea,
.agency-form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.agency-form-group input:focus,
.agency-form-group textarea:focus,
.agency-form-group select:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

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

.agency-form-group .required {
  color: #d63638;
}

/* Form Validation */
.agency-form-group .error {
  border-color: #d63638;
}

.agency-error-message {
  display: block;
  margin-top: 5px;
  color: #d63638;
  font-size: 14px;
}

/* Submit Button */
.agency-submit-btn {
  background: #0073aa;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.agency-submit-btn:hover {
  background: #005a87;
}

.agency-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Loading State */
.agency-form-loading .agency-submit-btn {
  position: relative;
}

.agency-form-loading .agency-submit-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: agency-spin 1s linear infinite;
}

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

/* Success/Error Messages */
.agency-message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-weight: 500;
}

.agency-message.success {
  background: #d1eddb;
  color: #155724;
  border: 1px solid #c3e6cb;
}

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

/* Portfolio Gallery Styles */
.agency-portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.agency-portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agency-portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.agency-portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.agency-portfolio-item:hover img {
  transform: scale(1.05);
}

/* Team Member Cards */
.agency-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 20px 0;
}

.agency-team-member {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agency-team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.agency-team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #f0f0f0;
}

.agency-team-member h3 {
  margin: 0 0 5px 0;
  color: #333;
}

.agency-team-member .role {
  color: #666;
  font-style: italic;
  margin-bottom: 15px;
}

.agency-social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.agency-social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: #f0f0f0;
  color: #666;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.agency-social-links a:hover {
  background: #0073aa;
  color: white;
  transform: translateY(-2px);
}

/* Testimonials */
.agency-testimonials {
  margin: 40px 0;
}

.agency-testimonial {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  position: relative;
}

.agency-testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 60px;
  color: #0073aa;
  line-height: 1;
}

.agency-testimonial-content {
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #555;
}

.agency-testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.agency-testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.agency-testimonial-author .info h4 {
  margin: 0;
  color: #333;
}

.agency-testimonial-author .info .company {
  color: #666;
  font-size: 14px;
}

.agency-rating {
  display: flex;
  gap: 2px;
  margin-top: 5px;
}

.agency-rating .star {
  color: #ffc107;
  font-size: 16px;
}

/* FAQ Styles */
.agency-faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.agency-faq-question {
  background: #f8f9fa;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  border: none;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.agency-faq-question:hover {
  background: #e9ecef;
}

.agency-faq-question::after {
  content: "+";
  font-size: 20px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.agency-faq-question.active::after {
  transform: rotate(45deg);
}

.agency-faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.agency-faq-answer.active {
  padding: 20px;
  max-height: 500px;
}

.agency-faq-answer p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .agency-contact-form {
    padding: 15px;
    margin: 0 10px;
  }

  .agency-portfolio-gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  .agency-team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .agency-testimonial {
    padding: 20px;
  }

  .agency-testimonial-author {
    flex-direction: column;
    text-align: center;
  }
}

/* Utility Classes */
.agency-text-center {
  text-align: center;
}

.agency-mb-20 {
  margin-bottom: 20px;
}

.agency-mt-20 {
  margin-top: 20px;
}

.agency-hidden {
  display: none;
}

.agency-clearfix::after {
  content: "";
  display: table;
  clear: both;
}
