:root {
    --bg-color: #FAEDD4;
    --accent-color: #AC0755;
    --text-dark: #333333;
    --text-muted: #666666;
    --font-sans: 'Manrope', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #FAEDD4;
    font-family: var(--font-sans);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Decoration */
.bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background-image: url('../images/logos/chamunda-logo.png');
    background-repeat: no-repeat;
    background-position: -20% 50%;
    background-size: 80%;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
    animation: fadeIn 1.5s ease-out;
}

/* Keyframe animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.05;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* Main Layout */
.contact-main {
    /* max-width: 1400px; */
    margin: 0 auto;
    padding: 13rem 4rem 6rem;
    width: 80%;
    /* float: left; */
    margin: 0 auto;
    animation: slideInUp 0.8s ease-out;
}

.contact-main::before {
    content: "";
    position: absolute;
    top: -10%;
    left: -10%;
    /* right: 117%; */
    width: 30%;
    height: 100%;
    background: url(../images/watermark-img.png) no-repeat center center;
    background-size: contain;
    opacity: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

/* Left Image */
.contact-image-section {
    animation: slideInLeft 1s ease-out;
}

.contact-image-section .image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.6s ease;
}

.contact-image-section .image-wrapper:hover {
    box-shadow: 0 20px 40px rgba(140, 0, 38, 0.2);
    transform: scale(1.02);
}

.contact-image-section .map-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.6s ease;
}

.contact-image-section .map-wrapper:hover {
    box-shadow: 0 20px 40px rgba(140, 0, 38, 0.2);
}

.contact-image-section .map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-image-section img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.contact-image-section:hover img {
    transform: scale(1.08);
}

/* Right Form */
.contact-form-section {
    padding-right: 2rem;
    animation: slideInRight 1s ease-out;
}

.category-tag {
    font-family: "Manrope", sans-serif;
    color:#AC0755;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 20px;
    display: block;
    margin-bottom: 1rem;
    animation: slideInUp 0.6s ease-out;
}

.page-title {
    font-family: 'pp-fragment';
    font-family: var(--font-serif);
    font-size: 63px;
    line-height: 64px;
    letter-spacing: 0px;
    color:#AC0755;
    font-weight: 300;
    margin-bottom: 16px;
    animation: slideInUp 0.8s ease-out 0.1s both;
}

.subtitle {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0px;
    color: #444748;
    margin-bottom: 34px;
    line-height: 30px;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.section-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    animation: slideInUp 0.6s ease-out;
}

.form-section {
    margin-bottom: 3rem;
}

.pill-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out;
}

.pill {
    cursor: pointer;
    animation: scaleIn 0.6s ease-out;
    animation-fill-mode: both;
}

.pill:nth-child(1) { animation-delay: 0.1s; }
.pill:nth-child(2) { animation-delay: 0.2s; }
.pill:nth-child(3) { animation-delay: 0.3s; }
.pill:nth-child(4) { animation-delay: 0.4s; }
.pill:nth-child(5) { animation-delay: 0.5s; }

.pill input {
    display: none;
}

.pill span {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pill span:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pill input:checked+span {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: scale(1.05);
}

/* Form Groups */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 0px;
}

.form-group {
    margin-bottom: 2.5rem;
    animation: slideInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.2s; }
.form-group:nth-child(2) { animation-delay: 0.3s; }
.form-group:nth-child(3) { animation-delay: 0.4s; }
.form-group:nth-child(4) { animation-delay: 0.5s; }

.form-group label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    animation: slideInUp 0.6s ease-out;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0.8rem 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s, transform 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
    transform: translateX(5px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.3);
    font-style: italic;
}

/* Submit Button */
.submit-btn {
    font-family: "Manrope", sans-serif;
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    animation: slideInUp 1s ease-out 0.6s both;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background-color:#AC0755;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 30, 65, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .contact-image-section {
        order: 2;
    }


    .contact-main {
        padding: 2rem;
        padding-top: 50%;
        width: 100%;
    }

    .contact-form-section {
    padding-right: 0rem;
}

.subtitle {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0px;
    color: #444748;
    margin-bottom: 25px;
    line-height: 30px;
}

        .page-title {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}


@media only screen and (min-width: 0px) and (max-width:1000px) {
  .contact-main::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    /* right: 117%; */
    width: 60% !important;
    height: 100%;
    background: url(../images/watermark-img.png) no-repeat center center;
    background-size: contain;
    opacity: 1;
}

    .contact-main {
        padding: 2rem;
        padding-top: 25%;
        width: 100%;
    }

}

@media only screen and (min-width: 1001px) and (max-width:1100px) {
    .contact-main {
        padding: 2rem;
        padding-top: 25%;
        width: 85%;
    }

    .submit-btn {
    width: 45%;
    }

    .contact-image-section .image-wrapper {
    display: none;
}
}


@media only screen and (min-width: 1001px) and (max-width:1100px) {
    .contact-main {
        padding: 2rem;
        padding-top: 25%;
        width: 85%;
    }

    .submit-btn {
    width: 45%;
    }

    .contact-image-section .image-wrapper {
    display: block;
}

.page-title {
    font-size: 48px;
}
}
