/* =============================================
   CONTACT PAGE STYLES — contact.css
   Shared styles (header, nav, footer) are in shared.css
   ============================================= */

body {
    background: url('logo/pr4.png') no-repeat center center fixed;
    background-size: cover;
}

/* Main layout */
main {
    padding: 120px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ── CONTACT US Header — original style ─────── */
.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h1 {
    font-size: 3.2rem;
    color: #004085;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

.contact-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #0056b3, #004085);
    border-radius: 2px;
}

/* ── Intro text + form ───────────────────────── */
.contact-content {
    text-align: center;
    margin-bottom: 50px;
}

.contact-content p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 30px;
}

.form-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 10px rgba(0, 86, 179, 0.4);
    outline: none;
    border-color: #0056b3;
    background-color: white;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    padding: 16px 30px;
    background: linear-gradient(135deg, #004085, #0056b3);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form button:hover {
    background: linear-gradient(135deg, #0056b3, #0069d9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.6);
}

/* ── Success / Error Messages ────────────────── */
.success-message,
.error-message {
    display: none;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.success-message {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.error-message {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.success-icon {
    font-size: 50px;
    margin-bottom: 15px;
    animation: bounce 0.5s ease;
}

.error-icon { font-size: 40px; margin-bottom: 15px; }

.success-message h3,
.error-message h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.success-message p,
.error-message p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.retry-btn {
    background: white;
    color: #dc3545;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.retry-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.2); }
}

/* ── Contact Info Boxes ──────────────────────── */
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0;
    text-align: center;
    align-items: start;
}

.info-box {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 250px;
}

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

.info-icon {
    font-size: 2.5rem;
    color: #004085;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.info-box h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #004085;
    flex-shrink: 0;
}

.info-box p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-top: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-box p a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.info-box p a:hover {
    color: #0056b3;
}

/* ── Google Map ──────────────────────────────── */
.map-container {
    margin: 60px 0;
    text-align: center;
}

.map-container h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #004085;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ── OUR CLIENTS — Seamless Infinite Ticker ────
   Replaces the old broken carousel.
   Uses requestAnimationFrame for a perfectly
   smooth, never-restarting infinite loop.
─────────────────────────────────────────────── */
.clients-section {
    margin: 60px 0 10px;
    text-align: center;
}

.clients-section h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #004085;
}

.clients-section > p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
}

.ticker-wrapper {
    overflow: hidden;
    position: relative;
    background: #f1f3f5;
    border-radius: 10px;
    padding: 20px 0;
    /* Soft fade on edges — logos glide in/out smoothly */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 6%,
        black 94%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 6%,
        black 94%,
        transparent 100%
    );
}

.ticker-track {
    display: flex;
    will-change: transform;
}

.client-logo-item {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 20px 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    margin: 0 14px;
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.client-logo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.client-logo-item img {
    max-width: 180px;
    max-height: 80px;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.client-logo-item:hover img {
    filter: grayscale(0%);
}

/* Footer */
footer { margin-top: 40px; }

/* =============================================
   MEDIA QUERIES
   ============================================= */

@media (max-width: 768px) {
    main { padding: 100px 15px 30px; }

    .contact-section { padding: 30px 20px; }

    .contact-header h1 { font-size: 2.5rem; }
    .contact-content p { font-size: 1.1rem; }
    .contact-form { padding: 20px; }

    .contact-form input,
    .contact-form textarea { padding: 12px; }

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .info-box { min-height: 220px; padding: 20px 15px; }

    .map-container h2 { font-size: 1.8rem; }
    .map-container iframe { height: 350px; }

    .clients-section h2 { font-size: 2.2rem; }

    .client-logo-item { min-width: 170px; padding: 16px 20px; }
    .client-logo-item img { max-width: 140px; max-height: 65px; }
}

@media (max-width: 480px) {
    main { padding: 90px 12px 30px; }

    .contact-section { padding: 25px 15px; }

    .contact-header h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .contact-header h1::after { width: 80px; }

    .contact-content p { font-size: 1rem; }
    .contact-form { padding: 15px; }
    .contact-form button { padding: 14px 20px; font-size: 1rem; }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-box { min-height: auto; }

    .map-container h2 { font-size: 1.5rem; }
    .map-container iframe { height: 300px; }

    .clients-section h2 { font-size: 1.8rem; }
    .clients-section > p { font-size: 1rem; }

    .client-logo-item { min-width: 150px; padding: 14px 18px; }
}

@media (max-width: 360px) {
    .contact-header h1 { font-size: 1.7rem; }

    .contact-form input,
    .contact-form textarea { padding: 10px; font-size: 0.95rem; }

    .info-box { padding: 20px 12px; }
    .info-box h2 { font-size: 1.2rem; }

    .map-container iframe { height: 250px; }
}