/* ===================================================
   AGENTS NETWORK - COMBINED CSS
   (agent.css + enquiry.css)
=================================================== */

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= BASE ================= */
body {
    font-family: 'Roboto', Arial, sans-serif;
    padding-top: 80px;
    color: #00204c;
    background: #ffffff;
    line-height: 1.7;
}

/* ================= GLOBAL CONTAINER ================= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* ================= HERO (UNIFORM ALL PAGES) ================= */
.hero {
    width: 100%;
    min-height: 65vh;

    background:
        linear-gradient(rgba(0,32,76,0.75), rgba(0,32,76,0.75)),
        url('../image/agent.webp') center/cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    color: #ffffff;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 12px;
}

.hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}

/* ================= SECTION ================= */
.section-padding,
section {
    padding: 70px 0;
}

/* ================= ROW CENTER FIX ================= */
.section-padding .container > .row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ================= SEARCH BOX ================= */
.search-box {
    text-align: center;
    margin: -40px auto 30px;
    position: relative;
    z-index: 2;
}

.search-box input {
    width: 100%;
    max-width: 420px;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
}

/* ================= TITLES ================= */
.page-title {
    text-align: center;
    margin: 40px 0;
    font-size: 2rem;
}

.section-title-center {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

/* ================= AGENT GRID ================= */
.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* ================= AGENT CARD ================= */
.agent-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: all 0.3s ease;

    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards;
}

.agent-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* ================= PORT / COMPANY ================= */
.port-name {
    display: flex;
    align-items: center;
    gap: 10px;

    font-weight: bold;
    color: #b90c14;
    font-size: 18px;
    margin-bottom: 10px;
}

.port-name::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #0d6efd;
    margin-top: 5px;
    border-radius: 2px;
}

.company-name {
    font-weight: 600;
    margin-bottom: 10px;
}

.address {
    font-size: 14px;
    color: #555;
}

/* ================= FLAG ================= */
.flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
}

/* ================= CONTACT CARD ================= */
.contact-card {
    background: #ffffff;
    padding: 32px 28px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    max-width: 600px;
    width: 100%;
}

.contact-card h2 {
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

/* ================= FORM ================= */
.contact-card input,
.contact-card textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
    transition: 0.3s;
}

.contact-card textarea {
    resize: none;
    height: 120px;
}

.contact-card input:focus,
.contact-card textarea:focus {
    border-color: #b90c14;
    outline: none;
    box-shadow: 0 0 0 2px rgba(185,12,20,0.1);
}

/* ================= LABEL ================= */
.contact-card label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    color: #00204c;
}

/* ================= BUTTON ================= */
.contact-card button {
    background: #b90c14;
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.contact-card button:hover {
    background: #00204c;
}

/* ================= SUCCESS ALERT ================= */
.alert-success {
    display: none;
    background: #e6f4ea;
    color: #1e7e34;
    padding: 10px 12px;
    margin-top: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* ================= IMAGE ================= */
img.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

/* ================= INTL TEL INPUT ================= */
.iti {
    width: 100%;
    margin-bottom: 14px;
}

/* ================= ANIMATION ================= */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .hero {
        min-height: 55vh;
    }

    .page-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 767px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .section-padding,
    section {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }
}