/* RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.transition-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #eeaa4b;
    z-index: 1000;
    pointer-events: none;
    animation: fadeOut 1s ease forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* HEADER */
header {
    width: 100%;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, #333 100%);
    padding: 20px;
    margin-bottom: 50px;
    text-align: center;
    color: var(--primary);
}

header .logo img {
    max-width: 80px;
    max-height: 80px;
    margin-bottom: 10px;
    image-rendering: var(--image-crisp);
}

.header-title {
    margin: 0;
    font-size: 40px;
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    line-height: 48px;
}

.top-left {
    position: absolute;
    left: 20px;
    top: 20px;
}

.return-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    /* space between icon & text */
    padding: 0.5rem 0.75rem;
    background: var(--primary);
    /* or your button color */
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--secondary-dark);
}

.return-icon {
    width: 18px;
    /* REQUIRED */
    height: 18px;
    /* REQUIRED */
    flex-shrink: 0;
}

.return-button:hover {
    background-color: #FDE98F;
    color: #fff;
}

/* CONTAINER CARD */
.container,
.main-container {
    position: relative;
    /* <-- make pseudo-elements relative to this */
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    background: linear-gradient(135deg, #c8893a 0%, #774e14 100%);
    border-radius: var(--radius-xlg);
    box-shadow: var(--shadow-lg);
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    z-index: 0;
}



/* Subtle background circles */
.container::before,
.container::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.container::before {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -50px;
}

.container::after {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -100px;
}

/* Extra circle inside container */
.container .circle-third {
    position: absolute;
    /* <-- make it absolute */
    width: 250px;
    height: 250px;
    top: 100px;
    right: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.container h2 {
    text-align: center;
    color: var(--bg-card);
    font-weight: var(font-weight-bold);
    line-height: var(--line-height-heading);
    margin-bottom: 25px;
    font-weight: 600;
}

/* SERVICES LIST */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--bg-card);
    box-shadow: var(--shadow-md);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    background-color: var(--text-muted);
    box-shadow: var(--shadow-lg);
}

/* SERVICE ELEMENTS */
.service-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    color: var(--bg);
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon {
    display: flex;
    align-items: center;
    /* vertically center the icon */
    justify-content: center;
    /* horizontally center the icon */
    width: 2.5rem;
    /* diameter of the circle */
    height: 2.5rem;
    background: var(--bg-rgba, rgba(0, 0, 0, 0.2));
    /* fallback color if variable undefined */
    border: 1px solid var(--border-rgba, rgba(255, 255, 255, 0.3));
    border-radius: 50%;
    /* make it circular */
    margin-top: 0.5rem;
    flex-shrink: 0;
    /* prevents shrinking if inside flex container */
}

.service-icon .icon {
    width: 65%;
    /* scales icon relative to wrapper */
    height: 65%;
    color: white;
    /* icon color */
    display: block;
    font-weight: var(--font-weight-bold);
}


.service-text {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
}

.service-arrow svg {
    width: 20px;
    height: 20px;
    color: var(--border-rgba);
    flex-shrink: 0;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 15px 0;
    font-size: var(--font-size-small);
    color: var(--secondary-dark);
    width: 100%;
}

/* Overlay behind popup */
.overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Help Button */
.help-button {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
    background-color: #0d6efd;
    /* Accent Blue */
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
}

.help-button:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}

/* Help Popup */
.help-popup {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background-color: #ffffff;
    /* Match card bg */
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
}

/* Popup Header */
.help-popup header {
    background-color: #0d6efd;
    /* Accent Blue */
    color: #fff;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Close Button */
.help-popup .close-btn {
    background: none;
    border: none;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

/* Popup Content */
.help-popup .content {
    padding: 20px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    text-align: justify;
}

.help-popup .content ul {
    padding-left: 20px;
    margin-top: 10px;
}

.help-popup .content li {
    margin-bottom: 12px;
}

/* Inline icons styling */
.help-popup .content .material-icons-outlined {
    vertical-align: middle;
    font-size: 14px;
    margin-right: 3px;
}