/*
|--------------------------------------------------------------------------
| Contact Card
|--------------------------------------------------------------------------
*/

.cew-cc {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #f9f9f8;
}

.cew-cc-container {
    max-width: 1200px;
    margin: auto;
    padding-left: 48px;
    padding-right: 48px;
}

/*
|--------------------------------------------------------------------------
| Card shell
|--------------------------------------------------------------------------
*/

.cew-cc-card {
    display: flex;
    overflow: hidden;

    background-color: #ffffff;
    border-radius: 40px;
    border: 1px solid #bfc9c1;

    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.cew-cc-body {
    flex: 1 1 0;
    min-width: 0;

    padding: 48px;

    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cew-cc-heading {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #1A2F23;
    margin: 0;
}

/*
|--------------------------------------------------------------------------
| Details
|--------------------------------------------------------------------------
*/

.cew-cc-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.cew-cc-detail {
    --cew-accent: #2D6A4F;
    --cew-accent-rgb: 45, 106, 79;

    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cew-cc-detail-icon {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px;
    border-radius: 999px;

    background-color: rgba(var(--cew-accent-rgb), 0.15);
}

.cew-cc-detail-icon .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;

    color: var(--cew-accent);
}

.cew-cc-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #404943;
    margin: 0;
}

.cew-cc-value {
    display: block;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: #1A2F23;
    margin: 2px 0 0 0;

    text-decoration: none;
    overflow-wrap: anywhere;
}

a.cew-cc-value:hover {
    text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| Form
|--------------------------------------------------------------------------
*/

.cew-cc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cew-cc-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cew-cc-form input,
.cew-cc-form textarea {
    width: 100%;

    background-color: #f9f9f8;
    border: 1px solid #bfc9c1;
    border-radius: 12px;

    padding: 16px;
    font: inherit;
    font-size: 16px;
    color: #1a1c1c;

    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cew-cc-form input:focus,
.cew-cc-form textarea:focus {
    border-color: #2D6A4F;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.cew-cc-form textarea {
    resize: vertical;
}

.cew-cc-btn {
    align-self: flex-start;

    background-color: #2D6A4F;
    color: #ffffff;

    padding: 16px 32px;
    border: none;
    border-radius: 12px;

    font: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.10);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.cew-cc-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/*
|--------------------------------------------------------------------------
| Accessible-only labels
|--------------------------------------------------------------------------
*/

.cew-cc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*
|--------------------------------------------------------------------------
| Honeypot — must be invisible but not display:none (bots skip those)
|--------------------------------------------------------------------------
*/

.cew-cc-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/*
|--------------------------------------------------------------------------
| Validation & status
|--------------------------------------------------------------------------
*/

.cew-cc-form input.cew-cc-invalid,
.cew-cc-form textarea.cew-cc-invalid {
    border-color: #ba1a1a;
    box-shadow: 0 0 0 3px rgba(186, 26, 26, 0.12);
}

.cew-cc-field-error {
    display: block;
    margin-top: -8px;
    font-size: 13px;
    color: #ba1a1a;
}

.cew-cc-status {
    display: none;
    margin: 0;

    padding: 14px 16px;
    border-radius: 12px;

    font-size: 15px;
    line-height: 1.5;
}

.cew-cc-status--success {
    background-color: #e7f6ed;
    border: 1px solid #b1f0ce;
    color: #0f5238;
}

.cew-cc-status--error {
    background-color: #ffdad6;
    border: 1px solid #ffb4ab;
    color: #93000a;
}

.cew-cc-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/*
|--------------------------------------------------------------------------
| Side column: address + map
|--------------------------------------------------------------------------
*/

.cew-cc-side {
    flex: 1 1 0;
    min-width: 0;

    display: flex;
    flex-direction: column;

    background-color: #f3f4f3;
}

/*
|--------------------------------------------------------------------------
| Address block
|--------------------------------------------------------------------------
*/

.cew-cc-address {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    padding: 32px;
}

.cew-cc-address-icon {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border-radius: 999px;
    background-color: rgba(45, 106, 79, 0.12);
}

.cew-cc-address-icon .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 24px;
    line-height: 1;
    color: #2D6A4F;
}

.cew-cc-address-text {
    font-style: normal;
    font-size: 16px;
    line-height: 1.7;
    color: #1A2F23;
    margin: 0;
}

.cew-cc-directions {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 10px;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #2D6A4F;
}

.cew-cc-directions:hover {
    text-decoration: underline;
}

.cew-cc-directions .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
    font-size: 16px;
    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| Map
|--------------------------------------------------------------------------
*/

.cew-cc-map {
    flex: 1 1 auto;
    min-height: 400px;

    display: block;

    background-color: #dadad9;
    background-size: cover;
    background-position: center;

    transition: filter 0.7s ease;
}

.cew-cc-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.cew-cc-map--gray {
    filter: grayscale(100%);
}

.cew-cc-map--gray:hover,
.cew-cc-map--gray:focus-within {
    filter: grayscale(0%);
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .cew-cc-card {
        flex-direction: column;
    }

    .cew-cc-heading {
        font-size: 36px;
    }

}

@media (max-width: 768px) {

    .cew-cc {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .cew-cc-container {
        padding-left: 25px;
        padding-right: 25px;
    }

    .cew-cc-card {
        border-radius: 24px !important;
    }

    .cew-cc-body {
        padding: 28px;
        gap: 24px;
    }

    .cew-cc-heading {
        font-size: 28px;
    }

    .cew-cc-details,
    .cew-cc-form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .cew-cc-btn {
        align-self: stretch;
    }

    .cew-cc-map {
        min-height: 260px !important;
    }

    .cew-cc-address {
        padding: 24px;
    }

}
