/* SECTION */
.contact-section {
    padding: 80px 20px;
}

.contact-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* LEFT SIDE */

.contact-info {
    transform: translateX(-100px);
    transition: transform 0.4s ease;
    opacity: 0;
}

.contact-info h2 {
    line-height: 1.3;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 500;
    margin-bottom: 4rem;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
}

.contact-list .icon {
    width: 54px;
    height: 54px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-right: 15px;
    font-size: 28px;
    cursor: pointer;
}

.contact-list .icon:hover{
    background: var(--accent-light);
    color: var(--text-color);
}

.contact-list a {
    text-decoration: none;
    color: inherit;
}

/* FORM CARD */
.contact-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateX(100px);
    transition: transform 0.4s ease;
    opacity: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    margin-top: 20px;
}

label {
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

label span {
    color: red;
}

input,
textarea {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 15px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* BUTTON */
.submit-btn {
    margin-top: 30px;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: var(--accent-light);
    color: var(--text-color);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info h2 {
        font-size: 32px;
    }
}

@media (max-width: 500px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Reveal animation trigger */
.reveal {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* ----------------- Testimonial Section ----------------  */

#testimonials-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px 80px;

    .top-center{
        text-align: center;
        /* small pill label */
        .pill{
            display:inline-block;
            background:#fafafa;
            border:1px solid #f0f0f0;
            padding:10px 18px;
            border-radius:999px;
            font-size:14px;
            color:var(--text-color);
            box-shadow: none;
            margin:0 auto;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.8s ease-in-out;
        }
        /* Headline */
        .hero{
            text-align:center;
            margin:28px 0 56px;

            h2{
                margin:0 auto;
                font-weight: 500;
                font-size: clamp(1.8rem, 5vw, 2.3rem);
                text-align: center;
                margin: 0;
                line-height: 1.40;
                opacity: 0;
                transform: translateY(20px);
                transition: all .8s ease-in-out .05s;
            }
        }
    }

    /* Grid of cards */
    .cards{
        max-width: 1000px;
        margin: 20px auto;
        display:grid;
        grid-template-columns: repeat(3, 1fr);
        gap:38px;
        align-items:stretch;

        /* Card */
        .card{
            border-radius:22px;
            border:1px solid rgb(228, 228, 228);
            box-shadow: 0 3px 20px rgba(12,12,12,0.02);
            padding:36px 34px 30px;
            display:flex;
            flex-direction:column;
            justify-content:space-between;
            min-height:260px;
            transform:translateY(28px);
            opacity:0;
            will-change:transform,opacity;
            transition:transform 330ms cubic-bezier(.2,.9,.28,1), box-shadow 220ms ease;

            &:hover{
                transform: scale3d(1.2, 1.2, 2) rotateX(10deg) rotateY(5deg);
                box-shadow: 0 10px 30px rgba(12,12,12,0.08);
            }

            /* Stars */
            .stars{
                display:flex;
                gap:8px;
                margin-bottom:28px;

                svg {
                    width: 18px;
                    color: #FEC400;
                }
            }
            /* Testimonial text */
            .quote{
                color:var(--text-color);
                font-size:18px;
                line-height:1.6;
                font-weight:400;
                margin-bottom:38px;
                max-width: 40ch;
            }

            /* Footer of card (avatar + name) */
            .author {
                display:flex;
                align-items:center;
                gap:14px;

                .avatar{
                    width:48px;
                    height:48px;
                    border-radius:999px;
                    overflow:hidden;
                    flex-shrink:0;
                    background:linear-gradient(135deg,#e6e6e6,#dcdcdc);
                    display:inline-flex;
                    align-items:center;
                    justify-content:center;

                    img{
                        width:100%;
                        height:100%;
                        object-fit:cover;
                        display:block;
                    }
                }

                .meta{
                    display:flex;
                    flex-direction:column;
                    gap:2px;

                    .name{
                        font-weight:600;
                        font-size:16px;
                        color:var(--text-color);
                    }
                    .role{
                        font-weight:400;
                        color:var(--muted);
                        font-size:14px;
                    }
                }
            }
        }
    }
}

@media (max-width: 1024px) {
    #testimonials-section {
        .cards {
            gap: 22px;
        }
    }
}

@media (max-width: 860px) {
    #testimonials-section {
        margin-top: 100px;
        .cards {
            grid-template-columns: 1fr;
        }
    }
}

/* ------------------ Testimonial Section --------------- */





/* ------------------ Location Section --------------- */


#fr-locations-section {
    padding: 80px 20px;
    background: #ffffff;
}

.fr-locations-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* CARD */
.fr-location-card {
    overflow: hidden;
    border-radius: 28px;
}

.fr-location-bg {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    border-radius: 28px;
    display: flex;
    align-items: flex-end;
}

/* FLOATING INFO BOX */
.fr-location-info {
    background: #ffffff;
    border-radius: 22px;
    padding: 26px 28px;
    margin: 22px;
    width: calc(100% - 44px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.fr-location-info h3 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #111;
}

.fr-location-info p {
    font-size: 16px;
    color: #555;
    margin-bottom: 18px;
}

.fr-location-link {
    font-size: 16px;
    text-decoration: none;
    color: #888;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.fr-location-link span {
    transition: transform 0.3s ease;
}

.fr-location-link:hover {
    color: #000;
}

.fr-location-link:hover span {
    transform: translateX(5px);
}

/* ===============================
   Reveal Animation
   =============================== */

.fr-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fr-reveal.fr-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 1024px) {
    .fr-locations-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .fr-locations-container {
        grid-template-columns: 1fr;
    }

    .fr-location-bg {
        min-height: 380px;
    }
}


/* ------------------ Location Section --------------- */

.text-danger {
    color: #c30a0a;
    small {
        font-weight: 600;
        font-size: 12px;
        letter-spacing: 0.4px;
        word-spacing: 1px;
    }
}


/* The base rotating border spinner */
.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: -0.125em;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: 0.75s linear infinite spinner-border;
}

/* Small size modifier for .spinner-border-sm */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}

/* Utility to hide the element initially */
.d-none {
  display: none !important;
}

/* Animation keyframes */
@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}


/* Django Form Error Messages Styling */
.messages {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Base alert styling */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid transparent;
    animation: slideIn 0.3s ease-out;
    font-size: 15px;
    line-height: 1.5;
}

/* Success messages (green theme) */
.alert-success {
    background-color: #f0f9f0;
    border-color: #c3e6c3;
    color: #0f5132;
}

/* Error/danger messages (red theme) */
.alert-error, 
.alert-danger {
    background-color: #fdf2f2;
    border-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #e74c3c;
}

/* Warning messages (yellow theme) */
.alert-warning {
    background-color: #fff9e6;
    border-color: #ffeaa7;
    color: #856404;
}

/* Info messages (blue theme) */
.alert-info {
    background-color: #e8f4fd;
    border-color: #b8daff;
    color: #0c5460;
}

/* Close button styling */
.msg-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 0;
    margin-left: auto;
    color: inherit;
}

.msg-close:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.msg-close:before {
    content: "x";
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
}

/* Animation for alert appearance */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Message content styling */
.alert div {
    flex: 1;
    padding-right: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .alert {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .msg-close {
        right: 12px;
        width: 20px;
        height: 20px;
    }
    
    .msg-close:before {
        font-size: 20px;
    }
}

/* Hover effects */
.alert:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

/* For alert with icon (optional enhancement) */
.alert:before {
    margin-right: 12px;
    font-weight: bold;
}

.alert-success:before {
    content: "✓";
    color: #28a745;
}

.alert-error:before,
.alert-danger:before {
    content: "!";
    color: #e74c3c;
    font-weight: 900;
}

.alert-warning:before {
    content: "⚠";
    color: #f39c12;
}

.alert-info:before {
    content: "i";
    font-style: italic;
    color: #3498db;
}

/* Alert closing animation */
.alert-closing {
    opacity: 0 !important;
    transform: translateX(20px) !important;
    max-height: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

/* Close all button hover effect */
.close-all-btn:hover {
    opacity: 1 !important;
    background: #5a6268 !important;
}