@import "styles.css";

.service-section {
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
}

.service-catalog {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0.75rem;
    row-gap: 0.75rem;
    margin-top: 0.25rem;
    overflow-y: auto;
    flex: 1;
    padding: 0.5rem;
}

.hidden {
    display: none;
}

.service-catalog ul {
    padding-left: 1rem;
}

.service-description {
    margin-left: 0.5rem;
}

.service-tab-list {
    display: flex;
    align-items: stretch;
    justify-content: space-evenly;
}

.service-tab-list a {
    color: #5f5f5f;
    font-size: 1.2rem;
    border: none;
    padding: 0.5rem;
    font-weight: 700;
    width: 100%;
    background-color: #CfCfCf;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.service-tab-list a[aria-selected="true"] {
    color: var(--primary-color);
    border-bottom: 0.25rem solid var(--primary-color);
}

@media (min-width: 768px) {
    .service-catalog {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .service-tab-list a {
        font-size: 1.3rem;
    }

    .service-tab-list a[aria-selected="true"] {
        border-bottom: 0.35rem solid var(--primary-color);
    }
}

@media (min-width: 1200px) {
    .service-section {
        flex-direction: row;
        padding: 0;
    }

    .service-catalog {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        column-gap: 1rem;
        row-gap: 1rem;
    }

    .service-tab-list {
        flex-direction: column;
        align-items: stretch;
        margin-right: 0.25rem;
        width: 200px;
        gap: 1px;
    }

    .service-tab-list span {
        font-size: 1.5rem;
        /* The element holding the text inside the button */
        display: inline-block;
        white-space: nowrap;
        padding: 10px;
        font-weight: bold;

        /* --- Text Rotation --- */
        /* Rotate the text 90 degrees clockwise (reading bottom-up) */
        /*transform: rotate(-90deg);*/
    }

    .service-section a {
        flex: 1;
        border-bottom: 0;
        background-color: #CfCfCf;
        border-right: 0.75rem solid #7f7f7f;
    }

    .service-section a[aria-selected="true"] {
        border-right: 0.75rem solid var(--primary-color);
        color: var(--primary-color);
        border-bottom: 0;
        /*background: linear-gradient(to right, rgba(0,0,0, 0.5), black);*/
    }
}

.service-section article {
    /* 1. GLASS BACKGROUND: Light, highly transparent white/gray */
    background-color: rgba(255, 255, 255, 0.15);

    /* 2. BLUR EFFECT: Creates the frosted glass look, letting whitesmoke show through */
    backdrop-filter: blur(12px);

    /* 3. BORDER: Thin, visible border using your strong blue/white */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtly raised light edge */
    border-bottom: 3px solid var(--primary-color); /* Primary color accent */

    /* 4. SHADOW: Soft, less aggressive shadow */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);

    /* 5. TEXT COLOR: Must be dark for legibility over the light background */
    color: black;

    border-radius: 1.5rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

dialog {
    border: none;
    position: fixed;
    top: 0;
    left: 0;
    margin: auto;
    border-radius: 0.25rem;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
}

.dialog-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: whitesmoke;
    padding: 0.75rem;
    gap: 1rem;
}

.form-row {
    display: flex;
    justify-content: space-between;
    padding-inline: 1rem;
    width: 100%;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}