/* Join Our Journey Page Styles */

/* Hero Section */
.journey-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding: 100px 136px 0 136px;
}

.journey-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/Country Road Photo Manipulation.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.15);
    animation: fadeInZoomOut 1.2s ease-out forwards;
    z-index: 0;
}

@keyframes fadeInZoomOut {
    from {
        opacity: 0;
        transform: scale(1.15);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.journey-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 136px;
}

.journey-text-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin-top: auto;
    margin-bottom: auto;
    padding-top: 10vh;
}

.journey-icon {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-100px);
}

.journey-icon-img {
    width: 48px;
    height: 48px;
    filter: brightness(0) saturate(100%) invert(42%) sepia(28%) saturate(1156%) hue-rotate(107deg) brightness(92%) contrast(87%);
}

.journey-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: #191970;
    margin: 0 0 5px 0;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(100px);
    display: flex;
    align-items: center;
    gap: 15px;
}

.journey-title-icon {
    width: 48px;
    height: 48px;
    filter: brightness(0) saturate(100%) invert(42%) sepia(28%) saturate(1156%) hue-rotate(107deg) brightness(92%) contrast(87%);
}

.journey-title-underline {
    width: 100%;
    height: 1px;
    background: #191970;
    margin: 20px 0;
    opacity: 0;
    transform: translateY(100px);
}

.journey-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #333333;
    line-height: 1.6;
    margin: 0 0 60px 0;
    width: 90%;
    opacity: 0;
    transform: translateY(100px);
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(-100px);
    margin-top: auto;
    cursor: pointer;
}

.scroll-arrow {
    width: 66px;
    height: 66px;
    background: transparent;
    border: 2px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-top: 7px;
}

.scroll-arrow-icon {
    width: 34px;
    height: 34px;
    animation: bounceArrow 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    display: block;
    margin: auto;
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
        animation-timing-function: ease-out;
    }
    45% {
        transform: translateY(-15px);
        animation-timing-function: cubic-bezier(0.55, 0.09, 0.68, 0.53);
    }
    65% {
        transform: translateY(0);
    }
}

/* Arrow line animations */
.arrow-line-left {
    animation: closeLeft 1.5s ease-in-out infinite;
    transform-origin: 12px 16px;
}

.arrow-line-right {
    animation: closeRight 1.5s ease-in-out infinite;
    transform-origin: 12px 16px;
}

.arrow-line-center {
    animation: pulseCenter 1.5s ease-in-out infinite;
}

@keyframes closeLeft {
    0%, 50%, 100% {
        transform: rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: rotate(45deg);
        opacity: 0.8;
    }
}

@keyframes closeRight {
    0%, 50%, 100% {
        transform: rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: rotate(-45deg);
        opacity: 0.8;
    }
}

@keyframes pulseCenter {
    0%, 50%, 100% {
        opacity: 1;
    }
    25% {
        opacity: 0.9;
    }
}

.scroll-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #FFFFFF;
    white-space: nowrap;
}

/* Contact Section */
.contact-section {
    background-image: url('../images/Mountain Midnight and Twilioght Blue Overlay.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 136px;
    position: relative;
}

.contact-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.contact-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: #FFFFFF;
    text-align: center;
    margin: 0 0 10px 0;
    opacity: 0;
    transform: translateX(-100px);
}

.contact-title-underline {
    width: 100%;
    height: 1px;
    background: #FFFFFF;
    margin: 20px 0;
    opacity: 0;
    transform: translateX(-100px);
}

.contact-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #FFFFFF;
    text-align: center;
    margin: 0 0 60px 0;
    opacity: 0;
    transform: translateX(-100px);
}

/* Contact Content */
.contact-content {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: stretch;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: #E5E4E2;
    padding: 40px;
    width: 40%;
    opacity: 0;
    transform: translateX(-100px);
}

.contact-form-header {
    margin-bottom: 30px;
}

.form-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 15px 0;
}

.form-description {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

/* Contact Info Boxes */
.contact-info-boxes {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.info-box {
    background: #2E8B57;
    color: #FFFFFF;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.info-box:hover {
    background: #52B788;
    transform: translateY(-2px);
}

.info-icon {
    font-size: 18px;
}

.info-text {
    color: #FFFFFF;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
}

.form-group input,
.form-group textarea {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    padding: 12px 15px;
    border: 1px solid #CCCCCC;
    background: #FFFFFF;
    color: #333333;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2E8B57;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.submit-button {
    background: #2E8B57;
    color: #FFFFFF;
    border: none;
    width: 74px;
    height: 34px;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 13.43px;
    font-weight: 500;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-button .button-text-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.submit-button .button-text-main,
.submit-button .button-text-hover {
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.submit-button .button-text-hover {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(100%);
    opacity: 0;
}

.submit-button:hover {
    background: #191970;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 25, 112, 0.4);
}

.submit-button:hover .button-text-main {
    transform: translateY(-100%);
    opacity: 0;
}

.submit-button:hover .button-text-hover {
    transform: translateY(0);
    opacity: 1;
}

.button-icon {
    width: 10px;
    height: 10px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.submit-button:hover .button-icon {
    filter: brightness(0) invert(1);
}

/* Contact Map */
.contact-map {
    flex: 1;
    opacity: 0;
    transform: translateX(-100px);
    overflow: hidden;
    min-height: 600px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.contact-map:hover iframe {
    transform: scale(1.2);
}

/* Contact Bottom Info Cards */
.contact-bottom {
    display: flex;
    gap: 40px;
}

.contact-info-card {
    background: transparent;
    border: 1px solid #FFFFFF;
    padding: 40px;
    text-align: center;
    opacity: 0;
    transform: translateX(-100px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: #2E8B57;
    transition: left 0.5s ease, right 0.5s ease;
    z-index: 0;
}

.contact-info-card:first-child::before {
    left: -100%;
    right: auto;
}

.contact-info-card:last-child::before {
    left: auto;
    right: -100%;
}

.contact-info-card:first-child:hover::before {
    left: 0;
}

.contact-info-card:last-child:hover::before {
    right: 0;
}

.contact-info-card > * {
    position: relative;
    z-index: 1;
}

.contact-info-card:first-child {
    width: 40%;
}

.contact-info-card:last-child {
    flex: 1;
}

.info-card-icon {
    font-size: 48px;
    margin-bottom: 15px;
    width: 48px;
    height: 48px;
    transition: transform 0.5s ease, filter 0.5s ease;
    align-self: center;
}

.contact-info-card:first-child:hover .info-card-icon,
.contact-info-card:last-child:hover .info-card-icon {
    transform: scale(1.3) translateY(20px);
    filter: brightness(0) invert(1);
}

.info-card-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    transition: opacity 0.5s ease;
    height: 32px;
    overflow: hidden;
}

.contact-info-card:first-child:hover .info-card-title,
.contact-info-card:last-child:hover .info-card-title {
    opacity: 0;
}

.info-card-link,
.info-card-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.5s ease;
}

.contact-info-card:first-child:hover .info-card-link,
.contact-info-card:last-child:hover .info-card-link,
.contact-info-card:last-child:hover .info-card-text {
    transform: translateY(-20px);
}

.contact-info-card:last-child .info-card-link:hover {
    color: #52B788;
}

.contact-info-card:first-child .info-card-link:hover {
    color: #FFFFFF;
}

.info-card-text {
    margin: 0;
    transition: color 0.3s ease;
}

.contact-info-card:last-child:hover .info-card-text {
    /* Text stays white on hover, centered by flex */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-content {
        flex-direction: column;
    }

    .contact-form-wrapper {
        width: 100%;
    }

    .contact-map {
        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .contact-bottom {
        flex-direction: column;
    }

    .contact-info-card:first-child,
    .contact-info-card:last-child {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeInFromBottom {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInFromTop {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-in .journey-text-wrapper .journey-title {
    animation: fadeInFromBottom 0.8s ease-out 0.2s forwards;
}

.animate-in .journey-text-wrapper .journey-title-underline {
    animation: fadeInFromBottom 0.8s ease-out 0.4s forwards;
}

.animate-in .journey-text-wrapper .journey-subtitle {
    animation: fadeInFromBottom 0.8s ease-out 0.6s forwards;
}

.animate-in .scroll-indicator {
    animation: fadeInFromTop 0.8s ease-out 1.2s forwards;
}

.contact-section.visible .contact-title {
    animation: fadeInFromLeft 0.8s ease-out forwards;
}

.contact-section.visible .contact-title-underline {
    animation: fadeInFromLeft 0.8s ease-out 0.1s forwards;
}

.contact-section.visible .contact-subtitle {
    animation: fadeInFromLeft 0.8s ease-out 0.2s forwards;
}

.contact-section.visible .contact-form-wrapper {
    animation: fadeInFromLeft 0.8s ease-out 0.4s forwards;
}

.contact-section.visible .contact-map {
    animation: fadeInFromLeft 0.8s ease-out 0.6s forwards;
}

.contact-section.visible .contact-info-card:nth-child(1) {
    animation: fadeInFromLeft 0.8s ease-out 0.8s forwards;
}

.contact-section.visible .contact-info-card:nth-child(2) {
    animation: fadeInFromLeft 0.8s ease-out 1s forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .journey-hero,
    .contact-section {
        padding: 0 4rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .journey-hero,
    .contact-section {
        padding: 0 2rem;
    }

    .journey-hero {
        padding-top: 100px;
    }

    .journey-title {
        font-size: 36px;
    }

    .journey-subtitle {
        font-size: 18px;
    }

    .contact-title {
        font-size: 36px;
    }

    .contact-form-wrapper {
        padding: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-bottom {
        grid-template-columns: 1fr;
    }

    .contact-info-boxes {
        flex-direction: column;
    }

    .info-box {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .journey-hero {
        padding: 0 1.5rem;
    }

    .contact-section {
        padding: 60px 1.5rem;
    }

    .journey-title {
        font-size: 28px;
    }

    .journey-subtitle {
        font-size: 16px;
    }

    .contact-title {
        font-size: 28px;
    }

    .contact-subtitle {
        font-size: 16px;
    }

    .contact-form-wrapper {
        padding: 20px;
    }

    .form-title {
        font-size: 22px;
    }

    .contact-info-card {
        padding: 30px;
    }
}

/* Form Messages (Success/Error) */
.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.form-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
