/* Responsive styles for the Education Consultancy Website */

/* Mobile styles */
@media (max-width: 768px) {
  /* Fix for the hero section to account for fixed header */
  .hero {
    margin-top: 70px;
    height: calc(100vh - 70px);
    background-size: cover;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .services,
  .testimonials,
  .about {
    padding: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    flex-direction: column;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    margin-bottom: 10px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  footer ul {
    margin-top: 20px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .media-wrapper.tiktok,
  .media-wrapper.facebook {
    min-height: 400px;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
  }

  .inquiry-form {
    padding: 60px 0;
  }

  .form-submit {
    flex-direction: column;
    gap: 15px;
  }

  .required-fields {
    order: -1;
  }

  .btn-submit {
    width: 100%;
  }

  .destinations-grid {
    grid-template-columns: 1fr;
  }

  .destinations {
    padding: 60px 0;
  }

  .destination-img {
    height: 180px;
  }

  .page-banner {
    height: 300px;
  }

  .banner-content h1 {
    font-size: 2.2rem;
  }

  .about-story {
    padding: 60px 0;
  }

  .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step-card {
    flex-direction: column;
  }

  .step-number {
    margin-bottom: 15px;
    margin-right: 0;
  }

  .step-card:not(:last-child)::after {
    display: none;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .partners-slider {
    gap: 20px;
  }

  .partner-logo {
    width: 120px;
    height: 70px;
  }

  .testimonial-quote {
    padding: 25px;
  }

  .testimonial-quote blockquote p {
    font-size: 1rem;
  }

  .modal-content {
    width: 90%;
    margin: 20% auto;
    padding: 20px;
  }

  .confirmation-message i {
    font-size: 40px;
  }

  .confirmation-message h3 {
    font-size: 1.3rem;
  }

  /* Fix for mobile layout */
  .container {
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  /* Ensure proper overflow handling */
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  /* Remove any potential width issues causing overflow */
  section, .container, .row, .col {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Ensure images are responsive and don't overflow */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    height: 400px;
  }

  .services,
  .testimonials,
  .about {
    padding: 40px;
  }

  .contact-form {
    flex-direction: row;
    justify-content: space-between;
  }

  .contact-form input,
  .contact-form textarea {
    width: 48%;
  }
}

/* Desktop styles */
@media (min-width: 1025px) {
  .hero {
    height: 500px;
  }

  .services,
  .testimonials,
  .about {
    padding: 60px;
  }

  .contact-form {
    flex-direction: row;
    justify-content: space-between;
  }

  .contact-form input,
  .contact-form textarea {
    width: 30%;
  }
}

/* Medium screens */
@media screen and (max-width: 992px) {
  .about .container {
    flex-direction: column;
  }

  .about-text,
  .about-image {
    width: 100%;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  section {
    padding: 60px 0;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-container {
    flex-direction: column;
  }

  .form-image {
    min-height: 300px;
  }

  .form-content {
    padding: 30px;
  }

  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    flex-direction: column;
    gap: 40px;
  }

  .mission-vision-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience-badge {
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    font-size: 0.9rem;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 10px 20px;
  }

  .testimonial-card {
    padding: 20px;
  }

  .destination-content h3 {
    font-size: 1.2rem;
  }

  .destination-features li {
    font-size: 0.85rem;
  }

  .destinations-cta p {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .step-content h3 {
    font-size: 1.2rem;
  }

  .page-banner {
    height: 250px;
  }

  .banner-content h1 {
    font-size: 1.8rem;
  }

  .banner-content p {
    font-size: 1rem;
  }

  .testimonial-quote cite img,
  .testimonial-author img {
    width: 40px;
    height: 40px;
  }

  .modal-content {
    width: 95%;
    padding: 15px;
  }

  .form-success i {
    font-size: 45px;
  }

  .form-success h3 {
    font-size: 1.2rem;
  }
}

/* Services Page Responsive Styles */

@media screen and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-detail-content {
    flex-direction: column;
    gap: 30px;
  }

  .service-detail.alternate .service-detail-content {
    flex-direction: column;
  }

  .service-detail-image {
    max-width: 100%;
    order: -1;
  }

  .packages-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .value-proposition .container {
    flex-direction: column;
  }

  .value-image {
    order: -1;
    max-width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    max-width: 100%;
  }

  .package-card.featured {
    transform: none;
    order: -1;
  }

  .package-card.featured:hover {
    transform: translateY(-10px);
  }

  .testimonial-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .testimonial-image {
    margin-bottom: 20px;
  }

  .accordion-header h3 {
    font-size: 1rem;
  }
}

@media screen and (max-width: 576px) {
  .services-main {
    padding: 60px 0;
  }

  .service-card {
    padding: 25px 20px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  .service-icon i {
    font-size: 1.5rem;
  }

  .service-process {
    padding: 20px;
  }

  .package-header {
    padding: 20px;
  }

  .package-features {
    padding: 20px;
  }

  .package-price {
    font-size: 1.8rem;
  }

  .accordion-header {
    padding: 15px 20px;
  }

  .accordion-item.active .accordion-content {
    padding: 15px 20px;
  }
}

/* Contact Page Responsive */
@media screen and (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .map-container {
    max-width: 100%;
  }

  .appointment-container {
    flex-direction: column;
  }

  .appointment-image {
    width: 100%;
    height: 300px;
  }
}

@media screen and (max-width: 768px) {
  .info-cards {
    flex-direction: column;
    align-items: center;
  }

  .info-card {
    width: 100%;
    max-width: 100%;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .form-buttons {
    flex-direction: column;
  }

  .office-info {
    flex-direction: column;
  }

  .faq-question h3 {
    font-size: 1rem;
  }
}

@media screen and (max-width: 576px) {
  .contact-info-section {
    padding: 60px 0 30px;
  }

  .contact-main {
    padding: 40px 0;
  }

  .contact-form-container {
    padding: 25px 20px;
  }

  .appointment-content {
    padding: 30px 20px;
  }

  .info-icon {
    width: 60px;
    height: 60px;
  }

  .info-icon i {
    font-size: 1.5rem;
  }

  .contact-cta {
    padding: 60px 0;
  }

  .contact-cta h2 {
    font-size: 1.5rem;
  }

  .contact-cta p {
    font-size: 1rem;
  }
}

/* Enhanced Element Styling */
.btn {
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 189, 89, 0.2);
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #ffbd59, #0c2759);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0c2759, #ffbd59);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover:before {
    left: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 189, 89, 0.3);
}

/* Card Enhancements */
.service-card, 
.destination-card, 
.team-card,
.testimonial-card,
.info-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover,
.destination-card:hover,
.team-card:hover,
.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Section Enhancements */
section {
    position: relative;
    overflow: hidden;
}

section:before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 189, 89, 0.05), rgba(12, 39, 89, 0.05));
    top: -150px;
    left: -150px;
    z-index: -1;
}

section:after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(12, 39, 89, 0.05), rgba(255, 189, 89, 0.05));
    bottom: -150px;
    right: -150px;
    z-index: -1;
}

/* Form Enhancements */
input, textarea, select {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

input:focus, textarea:focus, select:focus {
    border-color: #ffbd59;
    box-shadow: 0 0 0 3px rgba(255, 189, 89, 0.1);
    transform: translateY(-2px);
}

/* Contact Form Responsive Fixes */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Desktop and laptop displays */
@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-form-container {
        padding-right: 1.5rem;
    }
    
    .map-container {
        padding-left: 1.5rem;
    }
}

.contact-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

/* For tablets and larger */
@media (min-width: 768px) {
    .contact-form .form-row {
        flex-direction: row;
    }
    
    .contact-form .form-row .form-group {
        flex: 1;
        min-width: 0; /* Prevent flex items from overflowing */
    }
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    min-width: 0; /* Prevents input fields from exceeding container width */
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Ensure adequate spacing and prevent shrinkage */
.form-group {
    margin-bottom: 1rem;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
