.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 4rem;
    padding: 0 20px;
    gap: 4%;
}

#contact-card, #crm-card {
    background-color: #ffffff;
    max-width: 480px;
    width: 100%;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 4px 6px 16px rgba(168, 184, 165, 0.4);
    box-sizing: border-box;
}

#contact-card-header h1, #crm-card-header h1 {
    font-size: var(--fs-title);
    margin-top: 0;
    margin-bottom: 8px;
    color: #111;
}

.crm-card-description {
    font-size: var(--fs-body);
    color: #666;
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.4;
}

/* --- Form / Skjema styling --- */

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: var(--fs-small);
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: var(--fs-body);
    font-family: inherit;
    background-color: #fafafa;
    color: #111;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #111;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.submit-btn {
    width: 100%;
    background-color: #111111;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    font-size: var(--fs-body);
    font-family: inherit;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.submit-btn:hover {
    background-color: #2d2d2d;
}

.submit-btn:active {
    transform: scale(0.99);
}

/* --- Contact card info rows --- */

.info-row {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eaeaea;
}

.info-row:last-child {
    border-bottom: none;
}

.label {
    font-size: var(--fs-body);
    font-weight: 600;
    min-width: 110px;
    margin: 0;
    color: #111;
}

.value {
    font-size: var(--fs-body);
    margin: 0;
}

.value a {
    color: #111;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.value a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* --- Mobile / small screens --- */

@media (max-width: 700px) {
    /* the cards stack, form first, and fill the width minus a 16px gutter */
    .content-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        margin-top: 2rem;
        padding: 0 16px 3rem;
    }

    #contact-card, #crm-card {
        max-width: none;
        padding: 24px;
    }

    .info-row {
        gap: 1rem;
    }

    .label {
        min-width: 100px;
    }

    /* long email addresses wrap instead of running out of the card */
    .value {
        overflow-wrap: anywhere;
    }
}

/* the smallest phones: label above the value, so the email fits on one line */
@media (max-width: 360px) {
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: .25rem;
    }
}
