/* ========================================
   Contact Page — Premium Animations & Styles
   ======================================== */

/* ---------- Keyframe Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 173, 84, .4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 8px rgba(52, 173, 84, 0);
    }
}

@keyframes inputFocusGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 173, 84, .3);
    }

    100% {
        box-shadow: 0 0 0 4px rgba(52, 173, 84, .12);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* ---------- Scroll-reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(.25, .46, .45, .94),
        transform 0.8s cubic-bezier(.25, .46, .45, .94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(.25, .46, .45, .94),
        transform 0.8s cubic-bezier(.25, .46, .45, .94);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(.25, .46, .45, .94),
        transform 0.8s cubic-bezier(.25, .46, .45, .94);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- Hero Section ---------- */
.contact-hero {
    position: relative;
    background: linear-gradient(135deg, #1a5c2d 0%, #34AD54 40%, #2e8b47 70%, #1a5c2d 100%);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 153, 51, .15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, .06) 0%, transparent 40%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #ffffff 0%, transparent 100%);
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

.contact-hero h1 {
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .25);
}

.contact-hero .breadcrumb-links {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.contact-hero .breadcrumb-links a,
.contact-hero .breadcrumb-links span {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-hero .breadcrumb-links a:first-child {
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
}

.contact-hero .breadcrumb-links a:first-child:hover {
    background: rgba(255, 255, 255, .28);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}

.contact-hero .breadcrumb-links span:last-child {
    background: var(--secondary);
    color: #fff;
}

/* ---------- Contact Section ---------- */
.contact-section {
    padding: 100px 0 80px;
    overflow: hidden;
    position: relative;
}

.contact-section .section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    position: relative;
    padding-left: 50px;
    margin-bottom: 12px;
}

.contact-section .section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 38px;
    height: 2px;
    background: var(--primary);
    transform: translateY(-50%);
}

.contact-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 50px;
}

/* ---------- Form Card ---------- */
.contact-form-card {
    background: #fff;
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s;
}

.contact-form-card:hover {
    box-shadow: 0 25px 70px rgba(52, 173, 84, .14);
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    animation: gradientShift 4s ease infinite;
}

.contact-form-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.contact-form-card .form-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Form inputs */
.contact-form-card .form-floating {
    margin-bottom: 20px;
}

.contact-form-card .form-control {
    border: 2px solid #e8f0e8;
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 0.95rem;
    background: #fafff8;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    height: auto;
}

.contact-form-card .form-control:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(52, 173, 84, .1);
    outline: none;
}

.contact-form-card .form-control::placeholder {
    color: #aab5a5;
    font-weight: 400;
}

.contact-form-card textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.contact-form-card .btn-submit {
    background: linear-gradient(135deg, var(--primary), #2e8b47);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    padding: 16px 40px;
    border-radius: 14px;
    width: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-form-card .btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(52, 173, 84, .35);
}

.contact-form-card .btn-submit:active {
    transform: translateY(-1px);
}

.contact-form-card .btn-submit .btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
    width: 20px;
    height: 20px;
    pointer-events: none;
    animation: ripple 0.6s ease-out forwards;
}

/* ---------- Info Card ---------- */
.contact-info-card {
    background: linear-gradient(135deg, #1a5c2d 0%, #34AD54 50%, #2e8b47 100%);
    border-radius: 24px;
    padding: 50px 40px;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(52, 173, 84, .2);
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 153, 51, .2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 7s ease-in-out infinite;
    pointer-events: none;
}

.contact-info-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, .08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 5s ease-in-out infinite 1s;
    pointer-events: none;
}

.contact-info-card h3 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.contact-info-card .info-subtitle {
    color: rgba(255, 255, 255, .7);
    font-size: 0.95rem;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: transform 0.3s, background 0.3s;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item:hover {
    transform: translateX(6px);
    background: rgba(255, 255, 255, .15);
}

.contact-info-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 153, 51, .35);
    transition: transform 0.3s;
}

.contact-info-item:hover .contact-info-icon {
    transform: scale(1.1) rotate(-5deg);
}

.contact-info-item h5 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-info-item p {
    color: rgba(255, 255, 255, .85);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* ---------- Decorative ---------- */
.deco-contact {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.deco-c1 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 153, 51, .06), transparent 70%);
    top: -80px;
    right: -60px;
    animation: float 8s ease-in-out infinite;
}

.deco-c2 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(52, 173, 84, .05), transparent 70%);
    bottom: -50px;
    left: -30px;
    animation: float 6s ease-in-out infinite 1s;
}

/* ---------- Map Section ---------- */
.map-section {
    padding: 0 0 80px;
}

.map-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
    position: relative;
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .contact-hero {
        min-height: 280px;
    }

    .contact-section .section-title {
        font-size: 2rem;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 35px 25px;
    }

    .contact-info-card {
        margin-top: 30px;
    }
}

@media (max-width: 575.98px) {
    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-section .section-title {
        font-size: 1.6rem;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .contact-info-item {
        padding: 14px;
    }
}