/* ==========================================================================
   FOOTER COMPONENT STYLES
   ========================================================================== */

/* Base styles for the footer */
.footer {
    background-color: var(--white);
    padding-top: var(--section-vertical);
    padding-bottom: var(--section-vertical);
    border-radius: 24px 24px 0 0;
    margin-top: -24px; /* Overlap with the section above */
    position: relative;
    z-index: 10;
}

.footer__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 48px;
}

/* Main content grid layout for desktop */
.footer__main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px 20px;
    margin-bottom: 40px;
}



.footer__section {
    color: var(--color-text);
}

.footer__section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.43;
    letter-spacing: 0.01em;
    color: var(--color-text);
    opacity: 0.5;
    margin-bottom: 10px;
}

.footer__brand-container {
	margin-left: -15px;
}

/* Address, Email, Phone sections */
.footer__address-text,
.footer__email-text,
.footer__phone-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.22;
    color: var(--color-text);
    margin: 0;
}

.footer__address-text {
    margin-bottom: 16px;
}

.footer__social--inline {
    margin-top: 24px;
}

.footer__social-links {
    display: flex;
    gap: var(--space-md); /* match header__social gap */
    margin-top: 10px;
    align-items: center;
}

.footer__social-link img {
    display: block;
    transition: transform 0.2s ease-in-out;
}

.footer__social-link:hover img {
    transform: none;
}

/* Navigation Lists */
.footer__nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__nav-list li {
    margin-bottom: 10px;
}

.footer__nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.43;
    letter-spacing: 0.01em;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer__nav-link:hover {
    color: var(--color-primary); /* Accent color from header */
}

/* Specific grid placements */
.footer__address {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.footer__navigation { grid-column: 2 / 3; }
.footer__assortment { grid-column: 3 / 4; }
.footer__bouquets { grid-column: 4 / 5; }
.footer__gifts { grid-column: 5 / 6; }
.footer__home { grid-column: 6 / 7; }

.footer__email {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.footer__phone--inline {
    margin-top: 24px;
}

.footer__brand--grid {
    grid-column: 2 / -1;
    grid-row: 2 / 3;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: relative;
}

.footer__brand-logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Hide mobile elements on desktop */
.footer__mobile-info,
.footer__mobile-tabs-section {
    display: none;
}

.footer__mobile-tabs-section {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 12px 12px;
    box-sizing: border-box;
}

.footer__mobile-tabs {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #fff;
    border-radius: 17px;
    padding: 8px 24px;
    box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.12);
    border-top: 1px solid #E8DDE1;
    height: 72px;
    box-sizing: border-box;
}

.footer__mobile-tab {
    background-color: rgba(42, 91, 85, 0.1);
    border-radius: 4px;
    width: 39px;
    height: 39px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__mobile-tab-icon {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Responsive styles */
/*@media (max-width: 1200px) {
    .footer__main {
        grid-template-columns: repeat(4, 1fr);
    }
    .footer__home { display: none; }
    .footer__gifts { grid-column: 4/5; }
    .footer__brand--grid { grid-column: 2 / -1; }
}*/

@media (max-width: 1200px) {
.footer__main {
    grid-template-columns: repeat(6, 1fr);
}
	.footer__brand-container {
	margin-left: 0px;
}
}

/*
@media (max-width: 992px) {
    .footer__main {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer__bouquets, .footer__gifts { display: none; }
    .footer__brand--grid { grid-column: 1 / -1; grid-row: 3/4; justify-content: center; margin-top: 30px; }
    .footer__email { grid-row: 2/3; }
}
*/

@media (max-width: 768px) {
    .footer {
        padding: 40px 24px 100px; /* Add padding-bottom for the tab bar */
        margin-top: 0;
        border-radius: 0;
    }
    .footer__container {
        padding: 0;
    }
    .footer__main {
        display: none; /* Hide desktop grid completely */
    }
    .footer__mobile-info {
        display: block;
        text-align: center;
    }

    .footer__mobile-tabs-section {
        display: block;
    }

    .footer__mobile-social h3,
    .footer__mobile-contact h3 {
		color: #2c2c2c;
        font-size: 14px;
        opacity: 0.5;
        margin-bottom: 8px;
    }
    .footer__mobile-social-links {
        display: flex;
        justify-content: center;
        gap: var(--space-md);
        margin-bottom: 20px;
    }
    .footer__mobile-divider {
        height: 1px;
        background-color: #e0e0e0;
        margin: 20px 0;
    }

    .footer__mobile-contact p {
		color: #2c2c2c;
        font-size: 18px;
        font-weight: 500;
        margin: 0 0 20px 0;
    }
}

/* POP-UP WITH CONTACT FORM */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.popup-container {
    position: relative;
	padding: 23px 25px 23px;
    background: white;
    border-radius: 40px;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	overflow: visible;
	
}
.popup-content {
    display: flex;
    flex-direction: column;
}
.popup-image {
    flex: 1;
    display: flex;
}
.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 0 0 12px;
}
.popup-form {
    flex: 1;
    padding: 2rem;
    position: relative;
    min-width: 300px;
}
/* Кнопка закрытия для десктопа */
.popup-close--desktop {
    position: absolute;
    top: -20px;
    right: -20px;
    background: transparent;
    border: 2px #2A5B55 solid;
	color: #2A5B55;
    width: 30px;
    height: 30px;
    border-radius: 25%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10001;
}
/* Кнопка закрытия для мобильных устройств */
.popup-close--mobile {
    display: none;
    position: absolute;
    top: -280px;
    right: 15px;
  
    border: 2px solid white;
	color: white;
    width: 30px;
    height: 30px;
    border-radius: 25%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10002;
}
/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
	.popup-container {
		padding: 0px;
		border-radius: 20px;
	}
    .popup-content {
        flex-direction: column;
    }
    .popup-image img {
        border-radius: 12px 12px 0 0;
        max-height: 300px;
		height: 300px;
		
    }
    .popup-close--desktop {
        display: none;
    }
    .popup-close--mobile {
        display: block;
    }
    .popup-form {
        padding: 1.5rem;
    }
}
/* Стили для формы */
.questions-form__input-group {
    margin-bottom: 1rem;
}
.questions-form__input {
    width: 100%;
    padding: 12px;


    font-size: 14px;
    box-sizing: border-box;
}
.questions-form__footer {
	flex-direction: row;
}

.questions-form__privacy {
    font-size: 12px;
    color: #666;
	width: 100%;
    margin-top: 10px;
    text-align: left;
}
