/**
 * Footer CSS - Simplified Column Layout
 * Based on Shari computed styles
 */

/* ============================================
   FOOTER CONTAINER
   ============================================ */

#flex-footer {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    background-color: rgb(238, 247, 255);  /* Light blue from Shari */
    color: rgb(0, 0, 0);
    font-family: Arimo, "Arimo Fallback", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
}

#flex-footer section.flex-element.section {
    display: block;
    padding: 0;
    margin: 0;
    background-color: transparent;
}

/* ============================================
   GRID LAYOUT - 4 COLUMNS
   ============================================ */

#flex-footer .footer-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 30px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    background-color: rgb(238, 247, 255) !important;  /* Light blue from Shari */
}

/* ============================================
   FOOTER COLUMNS
   ============================================ */

.footer-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.footer-col-logo {
    flex: 0 0 200px !important;
    align-items: center !important;
}

.footer-col-nav {
    flex: 0 0 120px !important;
}

.footer-col-legal {
    flex: 0 0 160px !important;
}

.footer-col-newsletter {
    flex: 0 0 300px !important;
}

/* ============================================
   LOGO WIDGET
   ============================================ */

#flex-footer .imageWidget {
    display: block;
    width: 187px;
    height: 187px;
    padding: 0;
    margin: 0;
    background-color: transparent;
}

#flex-footer .imageWidget.align-center {
    text-align: center;
}

#flex-footer .imageWidget img {
    display: inline-block;
    width: 187px;
    height: 187px;
    max-width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    object-fit: contain;
}

/* ============================================
   SOCIAL HUB
   ============================================ */

#flex-footer .dmSocialHub {
    display: block;
    padding: 0;
    margin: 0;
    background-color: transparent;
    text-align: center;
}

#flex-footer .socialHubWrapper {
    display: inline-block;
    max-width: 100%;
}

#flex-footer .socialHubInnerDiv {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    margin: 0;
}

#flex-footer .socialHubInnerDiv a {
    display: inline-flex;
    text-decoration: none;
    margin: 0;
}

#flex-footer .socialHubIcon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    background-color: transparent;
    color: rgb(3, 139, 255);
    border: none;
}

#flex-footer .socialHubIcon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

#flex-footer .socialHubIcon:hover {
    color: rgb(255, 255, 255);
}

/* ============================================
   VERTICAL NAVIGATION
   ============================================ */

#flex-footer .unifiednav_vertical {
    display: block;
    padding: 0;
    margin: 0;
    background-color: transparent;
}

#flex-footer .unifiednav__container {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
}

#flex-footer .unifiednav__item-wrap {
    display: block;
    padding: 0;
    margin: 0;
}

#flex-footer .unifiednav__item {
    display: block;
    padding: 5px 0;
    margin: 0;
    background-color: transparent;
    color: rgb(0, 0, 0) !important;
    font-family: Arimo, "Arimo Fallback", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
}

#flex-footer .unifiednav__item:hover {
    color: rgb(3, 139, 255);
    text-decoration: underline;
}

#flex-footer .nav-item-text {
    display: block;
    font-size: 16px;
    color: inherit;
}

/* ============================================
   NEWSLETTER FORM
   ============================================ */

#flex-footer .dmform {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 0;
    margin: 0;
    background-color: transparent;
    font-family: Arimo, "Arimo Fallback", sans-serif;
}

#flex-footer .dmform-title {
    display: block !important;
    padding: 0 !important;
    margin: 0 0 15px 0 !important;
    background-color: transparent !important;
    color: rgb(0, 0, 0) !important;
    font-family: Oswald, "Oswald Fallback", sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: normal !important;
    text-align: left !important;
}

#flex-footer .dmforminput {
    display: block;
    margin: 0 0 10px 0;
    background-color: transparent;
}

#flex-footer .dmforminput label[hide="true"] {
    display: none;
}

#flex-footer .dmforminput input[type="text"],
#flex-footer .dmforminput input[type="email"] {
    display: block !important;
    width: 100% !important;
    height: 40px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    background-color: transparent !important;
    color: rgb(0, 0, 0) !important;
    font-family: Arimo, "Arimo Fallback", sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: normal !important;
    text-align: left !important;
    border: 2px solid rgb(0, 0, 0) !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

#flex-footer .dmforminput input::placeholder {
    color: #999;
}

#flex-footer .dmformsubmit {
    padding: 0;
    margin: 15px 0 0;
}

#flex-footer .dmformsubmit input[type="submit"] {
    display: inline-block;
    width: 176px;
    height: 38px;
    padding: 10px;
    margin: 0;
    background-color: rgb(3, 139, 255);
    color: rgb(255, 255, 255);
    font-family: Arimo, "Arimo Fallback", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#flex-footer .dmformsubmit input[type="submit"]:hover {
    background-color: rgb(0, 102, 204);
}

#flex-footer .dmform-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    margin-top: 15px;
    font-size: 15px;
    font-weight: 600;
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    animation: fadeInUp 0.4s ease-out;
}

#flex-footer .dmform-success::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #28a745;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

#flex-footer .dmform-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    margin-top: 15px;
    font-size: 15px;
    font-weight: 500;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    animation: fadeInUp 0.4s ease-out;
}

#flex-footer .dmform-error::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#flex-footer .dmformsubmit input[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#flex-footer .dmformsubmit input[type="submit"].loading {
    position: relative;
    color: transparent;
}

#flex-footer .dmformsubmit input[type="submit"].loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   COPYRIGHT
   ============================================ */

#flex-footer .footer-copyright-section {
    width: 100%;
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgb(238, 247, 255);
}

#flex-footer .copyright {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background-color: transparent;
    color: rgb(0, 0, 0);
    font-family: Arimo, "Arimo Fallback", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    #flex-footer .footer-grid {
        gap: 25px;
    }

    .footer-col-logo {
        flex: 0 0 180px;
    }

    .footer-col-nav,
    .footer-col-legal {
        flex: 0 0 140px;
    }

    .footer-col-newsletter {
        flex: 0 0 280px;
    }

    #flex-footer .socialHubIcon {
        width: 34px;
        height: 34px;
    }

    #flex-footer .dmformsubmit input[type="submit"] {
        width: 100%;
        max-width: 280px;
    }

    #flex-footer .copyright {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    #flex-footer .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        width: 100%;
        max-width: 300px;
        align-items: center;
    }

    .footer-col-logo,
    .footer-col-nav,
    .footer-col-legal,
    .footer-col-newsletter {
        flex: 0 0 auto;
    }

    #flex-footer .unifiednav__container {
        align-items: center;
    }

    #flex-footer .dmform {
        max-width: 100%;
    }

    #flex-footer .dmform-title {
        text-align: center;
    }

    #flex-footer .dmformsubmit input[type="submit"] {
        width: 100%;
    }

    #flex-footer .copyright {
        font-size: 12px;
        flex-direction: column;
    }
}
