/* ===== QTAC Remind Me ===== */
.qtac-remind-me {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding-block: var(--space-xl);
    padding-inline: max(var(--space-lg), calc((100% - 1200px) /2));
    background-image: linear-gradient(135deg, #17B5CE 0%, #5A1F7B 100%);
    color: var(--color-white);
}

.reminder-img, 
.reminder-content {
    flex: 1;
}

.reminder-content {
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
}

.reminder-logo,
.qtac-remind-me h2,
.remind-btn,
.qtac-remind-me p:not(.privacy-statement) {
    margin-bottom: var(--space-lg);
}

.reminder-img{
    display: flex;
    justify-content: center; 
    align-items: center;
}

.reminder-logo {
    max-width: 266px;
    height: auto; 
}

.remind-header {
    font-size: 2rem; /* 32px */
    font-weight: 700;
    line-height: 1.3em;
}

.remind-btn {
    background-color: var(--qtac-shadow-dark);
    border: none;
    color: var(--qtac-grey-light);
    font-family: var(--font-family);
    font-size: 1rem;   /* 16px */
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.remind-btn:hover {
    text-decoration: none;
    opacity: 0.85;
}

.remind-btn:focus-visible {
    outline: 2px solid var(--qtac-red);
    outline-offset: 2px;
}

.privacy-statement {
    font-size: 0.875rem; /* 14px */
    margin-top: auto;
}

/* ===== Site Footer ===== */
.site-footer {
    background-color: var(--color-white);
    padding: var(--space-xl);
    border-top: 1px solid var(--color-border);
    font-weight: 500;
    width: 100%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.footer-actions {
    display: flex;
    gap: var(--space-lg);
}

.footer-btn {
    border: 1px solid var(--qtac-grey-border);
    background-color: var(--color-white);
    padding: 9px 18px;
    border-radius: 56px;
    font-size: 0.875rem;
    align-items: center;
    justify-content: center;
    display: inline-flex;
    gap: var(--space-sm);
    transition: background-color 0.15s ease;
    color: var(--color-text);
    text-decoration: none;
    cursor: pointer;
}

.footer-btn:hover {
    background-color: var(--color-border);
    text-decoration: none;
}

.footer-btn:focus-visible {
    outline: 2px solid var(--qtac-shadow-dark);
    outline-offset: 2px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
    gap: var(--space-xl);
    font-size: 0.875rem;
}

.footer-nav {
    max-width: 50%;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-xl);
    list-style: none;
}

.footer-nav ul:not(.dropdown-menu) {
    /* Only add spacing for top-level lists, not dropdowns */
    margin: 0;
    padding: 0;
}

.footer-nav a {
    display: flex;
    flex-direction: row;
    position: relative;
    color: var(--color-text);
    text-decoration: none;
}

.footer-nav a:not(.dropdown-menu a) {
    /* Only add spacing for top-level links, not dropdown items */
    padding: 1em var(--space-sm);
    line-height: 1.4;
}

.footer-nav a::before {
    content: "";
    position: absolute;
    top: -1em;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--qtac-red);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.footer-nav a:hover::before,
.footer-nav a:focus-visible::before {
    opacity: 1;
}

.footer-external-links {
    display: flex;
    align-self: center;
    gap: var(--space-md);
}

.footer-external-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    color: var(--color-text);
    text-decoration: none;
    position: relative;
}

.footer-external-links a::after {
    content: "";
    position: absolute;
    bottom: -1em;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--qtac-red);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.footer-external-links a:hover::after,
.footer-external-links a:focus-visible::after {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    gap: var(--space-2xl);
}

.footer-acknowledgment {
    flex: 1;
    max-width: 50%;
}

.footer-acknowledgment p {
    font-size: 0.75rem;
    line-height: 2;
    color: var(--color-text);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
    padding-top: var(--space-lg);
}

.footer-social a {
    background-color: var(--color-border);
    border-radius: 50%;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.footer-social a:hover {
    background-color: var(--qtac-grey-border);
}

.footer-social .icon {
    width: 20px;
    height: 20px;
}

.footer-copyright {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--color-text);
}

.has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    background-color: var(--color-white);
    width: max-content;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: var(--space-md);
    margin: 0;
    bottom: calc(100% + 8px);
    left: 0;
    border: 1px solid var(--color-border);
    z-index: 10;
    list-style: none;
    /* Hidden state */
    opacity: 0;
    transform: translateY(4px);
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.2s ease 0.3s,
        transform 0.2s ease 0.3s,
        visibility 0s linear 0.5s;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
}

.has-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 12px;
}

.dropdown-menu li {
    margin-bottom: var(--space-sm);
}

.dropdown-menu a {
    font-size: 0.875rem;
    white-space: nowrap;
}

.dropdown-menu a::before {
    display: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    color: var(--qtac-red-dark);
    transform: translateY(1px);
    transition: transform 0.15s ease;
}
