/* Base styles */
:root {
    --border-radius: 6px;
    --padding: 20px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f6f8;
    padding: var(--padding);
    display: grid;
    gap: var(--padding);
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Grid layout for larger screens */
@media (min-width: 1024px) {
    body {
        /* If there's one column, it takes 10%% and if there's two items, each will take 50% */
        grid-template-columns: repeat(auto-fit, minmax(min(100%, calc(50% - 10px)), 1fr));
        grid-template-areas:
            "information message"
            "information certificate";
    }

    .information {
        grid-area: information;
    }

    .success-message,
    .error-message {
        grid-area: message;
    }

    .work-certificate {
        grid-area: certificate;
    }
}

/* Common block style */
.information, .work-certificate, .success-message,
.error-message  {
    background-color: white;
    border-radius: var(--border-radius);
    padding: var(--padding) calc(2 * var(--padding));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Messages */
.success-message {
    background-color: #9FE8A4;
}

.error-message {
    background-color: #F99E9B;
}

/* Information section */
.information {
    cursor: pointer;
    padding: calc(2 * var(--padding));
}

/* Remove default arrow */
.info-details > summary {
    display: block;
}

/* Remove default arrow for Safari (for webkit < 2.47.2) */
.info-details > summary::-webkit-details-marker {
    display: none;
}

/* Info blocks */
.info-block header {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: var(--padding);
    align-items: center;
}

.info-block img {
    width: 30px;
    height: 30px;
}

.info-block h2 {
    font-size: 16px;
}

.info-block ul {
    padding-left: var(--padding);
}

.info-block {
    line-height: 1.5;
}

.info-more-icon, .info-less-icon {
    display: block;
    margin: var(--padding) auto auto;
}

/* Hide the arrow pointing down on open details */
.info-details[open] .info-more-icon {
    display: none;
}

/* Animation for content */
.info-details[open] > :not(summary) {
    animation: slide-down 0.5s ease;
}

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

/* Work Certificate */
.certificate-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.header-icon {
    background-color: #2C4A90;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius);
    color: white;
    font-weight: bold;
    font-size: 24px;
    margin-right: 15px;
}

.certificate-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.info-row .label {
    color: #888;
    font-size: 14px;
}

.info-row .value {
    font-weight: bold;
    font-size: 14px;
}

.section {
    margin-top: 20px;
}

.section h2 {
    font-size: 18px;
    color: #fff;
    background-color: #2C4A90;
    padding: 10px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.work-stoppage-details {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
