@font-face {
    font-family: 'Polin';
    src: url('../fonts/Polin-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Polin';
    src: url('../fonts/Polin-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

#site-footer {
    max-width: 100%;
    margin: 0 auto;
    background-color: #00173C;
    color: #ffffff;
    padding: 80px 0 0 0;
    font-family: 'Heebo', 'Polin', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1727px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

/* Left Side: Form */
.footer-form-wrapper {
    flex: 1;
    max-width: 550px;
}

.footer-form-title {
    font-family: 'Polin', 'Heebo', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #ffffff;
    text-align: right;
    margin-bottom: 40px;
}

.footer-contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: flex;
    gap: 25px;
}

.form-row-1 .form-field {
    width: calc(50% - 12.5px);
}

.form-row-2 {
    display: flex;
    gap: 25px;
    align-items: center;
}

.form-row-2 .field-message {
    flex: 1;
}

.form-row-2 .field-submit {
    flex-shrink: 0;
    width: 171px;
}

.footer-contact-form input[type="text"],
.footer-contact-form input[type="tel"] {
    width: 100%;
    height: 60px;
    background-color: rgba(255, 255, 255, 0);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    padding: 0 30px;
    color: #ffffff;
    font-size: 18px;
    text-align: right;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.footer-contact-form input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.form-field.field-submit .footer-submit-btn {
    width: 171px;
    height: 60px;
    border-radius: 50px;
    background: #FFFFFF26;
    border: 1px solid #FFFFFF33;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    color: #ffffff;
    font-family: 'Polin', 'Heebo', sans-serif;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 24px 5px 5px; /* RTL layout: text on right (24px padding), circle on left (5px padding) */
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.footer-submit-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-arrow-circle {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    background: #FFFFFF26;
    border: 1px solid #FFFFFF33;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-submit-btn:hover .btn-arrow-circle {
    background: rgba(255, 255, 255, 0.35);
    transform: translateX(-4px); /* Micro-animation: slide arrow circle slightly leftwards (direction it points) */
}

.footer-submit-btn .btn-loader {
    font-size: 16px;
    color: #ffffff;
    margin: 0 auto;
}

.form-message {
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 6px;
    text-align: right;
}

.form-message.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Right Side: Links */
.footer-links-wrapper {
    display: flex;
    gap: 80px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.footer-col-title {
    font-family: 'Polin', 'Heebo', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #ffffff;
    text-align: right;
    margin: 0 0 20px 0;
}

.footer-col-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
}

.footer-link-text {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.footer-link:hover .footer-link-text {
    opacity: 1;
	color: #ffffff;
}

.footer-link-icon {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.footer-link-icon path {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.footer-link:hover .footer-link-icon path {
    opacity: 1;
}

/* Bottom Section */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 150px; /* gap from top part */
    padding-top: 30px;
}

.footer-bottom-links {
    display: flex;
    gap: 47px; /* space between them 47px */
    align-items: center;
}

.footer-bottom-link,
.footer-credit-link {
    font-family: 'Polin', 'Heebo', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-link:hover,
.footer-credit-link:hover {
    color: #ffffff;
}

/* Decorative Bottom Section */
.footer-top,
.footer-bottom {
    position: relative;
    z-index: 2;
}

.footer-bottom-decor-section {
    position: relative;
    width: 100%;
    height: 260px;
    margin-top: 0;
    pointer-events: none;
    z-index: 1;
}

.footer-bg-text-decor {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    z-index: 1;
    pointer-events: none;
}

.footer-plane-decor {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 1076px;
    height: auto;
    opacity: 1;
    pointer-events: none;
    z-index: 2;
}

/* RESPONSIVENESS */
@media (max-width: 1024px) {
    .footer-top {
        flex-direction: column-reverse;
        gap: 60px;
        align-items: stretch;
    }
    
    .footer-form-wrapper {
        max-width: 100%;
    }
    
    .footer-links-wrapper {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 60px 80px;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 50px 0 0 0;
    }
    
    .footer-links-wrapper {
        gap: 40px;
        flex-direction: column;
    }
    
    .footer-form-title {
        font-size: 26px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-row-1 .form-field,
    .form-row-2 .field-message,
    .form-row-2 .field-submit {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 20px;
        margin-top: 50px;
        padding-top: 25px;
        align-items: center;
        text-align: center;
    }
    
    .footer-bottom-links {
        gap: 30px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Footer Reveal Effect (Desktop only) */
@media (min-width: 769px) {
    #site-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    #site-footer.reveal-ready {
        opacity: 1;
        visibility: visible;
    }
    #page-wrapper {
        position: relative;
        z-index: 2;
        background-color: #00173C; /* matches footer bg */
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    }
}
