@import url('https://fonts.googleapis.com/css2?family=Marcellus&display=swap');

/* Custom Redesign Colors & Variables */
:root {
    --navy-blue: #081d3c;
    --navy-light: #16325c;
    --gold: #cca03a;
    --gold-hover: #b38b2e;
    --bg-light: #f5f8fc;
    --border-color: #e1e7f0;
    --text-dark: #2c3e50;
    --text-muted: #6b7c93;
    --white: #ffffff;
}

body {
    /* Subtle travel background */
    background: linear-gradient(rgba(245, 248, 252, 0.95), rgba(245, 248, 252, 0.95)),
        url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1920&q=80') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
}

/* Page Layout Wrapper */
.contact-page-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.contact-inner-container {
    /* Lowered opacity overlay (0.8) to make the map beautifully visible inside the container */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.72) 100%),
        url('https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1200&q=80') no-repeat center center;
    background-size: cover;
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(8, 29, 60, 0.08);
    padding: 40px;
    position: relative;
    /* overflow changed to visible so the orbiting plane does not clip when traveling along the borders */
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

/* ✈️ Orbiting Border Plane Styles */
.border-orbit-plane {
    position: absolute;
    color: var(--gold);
    font-size: 1.15rem;
    pointer-events: none;
    /* Make sure it doesn't block card clicks */
    z-index: 100;
    animation: orbitBorder 15s linear infinite;
    /* Smooth 15-second path cycle */
}

/* 
   Coordinate path tracing the exact outer rectangle of the container
   Angles are scaled progressively (90deg -> 180deg -> 270deg -> 360deg -> 450deg) 
   to ensure the plane turns correctly without rotating backwards.
*/
@keyframes orbitBorder {

    /* 1. TOP EDGE (Left to Right) */
    0% {
        top: 0;
        left: 0;
        transform: translate(-50%, -50%) rotate(0deg);
    }

    24% {
        top: 0;
        left: 100%;
        transform: translate(-50%, -50%) rotate(0deg);
    }

    /* Corner Turn: Top Right */
    25% {
        top: 0;
        left: 100%;
        transform: translate(-50%, -50%) rotate(90deg);
    }

    /* 2. RIGHT EDGE (Top to Bottom) */
    49% {
        top: 100%;
        left: 100%;
        transform: translate(-50%, -50%) rotate(90deg);
    }

    /* Corner Turn: Bottom Right */
    50% {
        top: 100%;
        left: 100%;
        transform: translate(-50%, -50%) rotate(180deg);
    }

    /* 3. BOTTOM EDGE (Right to Left) */
    74% {
        top: 100%;
        left: 0;
        transform: translate(-50%, -50%) rotate(180deg);
    }

    /* Corner Turn: Bottom Left */
    75% {
        top: 100%;
        left: 0;
        transform: translate(-50%, -50%) rotate(270deg);
    }

    /* 4. LEFT EDGE (Bottom to Top) */
    99% {
        top: 0;
        left: 0;
        transform: translate(-50%, -50%) rotate(270deg);
    }

    100% {
        top: 0;
        left: 0;
        transform: translate(-50%, -50%) rotate(360deg);
        /* 450deg resets back to 90deg seamlessly */
    }
}

/* Columns Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    margin-bottom: 50px;
}

/* Left Column: Info styling */
.contact-title-area {
    margin-bottom: 35px;
}

.contact-title-area h1 {
    font-family: 'Marcellus', serif;
    font-size: 3.5rem;
    color: var(--navy-blue);
    margin: 0;
    font-weight: 800;
}

/* Normal Solid Gold Line (Plane removed) */
.gold-plane-line {
    width: 150px;
    height: 3px;
    background-color: var(--gold);
    margin: 15px 0 20px 0;
    border-radius: 2px;
}

.subtitle-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Contact Methods List */
.contact-methods-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(8, 29, 60, 0.05);
}

.contact-method-item:last-child {
    border-bottom: none;
}

/* Clickable Icons Hover states */
.clickable-icon-wrapper {
    text-decoration: none;
    display: inline-block;
}

.method-icon-circle {
    width: 50px;
    height: 50px;
    background-color: var(--navy-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.clickable-icon-wrapper:hover .method-icon-circle {
    transform: scale(1.18);
    background-color: var(--gold);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(204, 160, 58, 0.4);
}

.method-details h3 {
    font-size: 1.1rem;
    color: var(--navy-blue);
    margin: 0 0 5px 0;
    font-weight: 700;
}

.method-details p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.method-details a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.method-details a:hover {
    color: var(--gold);
}

.email-label {
    font-weight: 600;
    color: var(--text-dark);
}

.address-text {
    line-height: 1.6;
}

/* Right Column: Card styling (Made translucent to reveal background map beneath) */
.message-card-container {
    background-color: rgba(255, 255, 255, 0.82);
    /* Reveals map underneath form */
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.message-card-header {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.msg-header-icon {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.msg-header-text h3 {
    margin: 0 0 4px 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.msg-header-text p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

.message-card-body {
    padding: 30px;
}

/* Form Fields Setup (Translucent backgrounds) */
.styled-redesign-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row-flex {
    display: flex;
    gap: 15px;
}

.form-group-item {
    flex: 1;
}

.form-group-item.full-width {
    width: 100%;
}

.styled-redesign-form input[type="text"],
.styled-redesign-form input[type="email"],
.styled-redesign-form input[type="tel"],
.styled-redesign-form select,
.styled-redesign-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: rgba(250, 251, 252, 0.8);
    /* Highly professional input style */
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    box-sizing: border-box;
    transition: all 0.25s;
}

.styled-redesign-form input:focus,
.styled-redesign-form select:focus,
.styled-redesign-form textarea:focus {
    border-color: var(--gold);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(204, 160, 58, 0.15);
}

.styled-redesign-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7c93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 40px;
}

.styled-redesign-form textarea {
    resize: vertical;
    min-height: 110px;
}

/* Form Submit Button */
.gold-send-btn {
    width: 100%;
    background-color: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s, transform 0.1s;
}

.gold-send-btn:hover {
    background-color: var(--gold-hover);
}

.gold-send-btn:active {
    transform: scale(0.99);
}

/* Bottom Features Row animation updates */
.bottom-features-bar {
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    padding-top: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-item-col {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease;
}

.feature-item-col:hover {
    transform: translateY(-4px);
}

.feature-icon-box {
    font-size: 1.6rem;
    color: var(--navy-blue);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.feature-item-col:hover .feature-icon-box {
    color: var(--gold);
}

.feature-text-box h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy-blue);
}

.feature-text-box p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsiveness adjustments */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bottom-features-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .contact-inner-container {
        padding: 20px;
    }

    .contact-title-area h1 {
        font-size: 2.8rem;
    }

    .form-row-flex {
        flex-direction: column;
        gap: 15px;
    }

    .bottom-features-bar {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}