/* BeON Card System - Fixed & Unified */

/* 1. ATSKIRO LAUKO KORTELĖ (field-card) */
.field-card,
.beon-field-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

    /* Centravimas */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.field-card:hover,
.beon-field-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.field-card img,
.beon-field-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 2. PAGRINDINIS KONTEINERIS */
.beon-layout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
    margin-bottom: 20px;

    /* Bendra didžioji kortelė */
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* 3. KAIRYSIS STULPELIS - 75% */
.beon-card-proleft {
    flex: 0 0 calc(75% - 10px);
    max-width: calc(75% - 10px);
    box-sizing: border-box;

    /* Paveikslo rėmelis viduje */
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

    /* Centravimas */
    display: flex;
    justify-content: center;
    align-items: center;
}

.beon-card-proleft img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 4. DEŠINYSIS STULPELIS - 25% */
.beon-card-proright {
    flex: 0 0 calc(25% - 10px);
    max-width: calc(25% - 10px);
    box-sizing: border-box;

    /* Teksto dėžutės stilius */
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);

    /* Išdėstymas */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    text-align: left;
}

/* 5. APATINIS REGIONAS (Footer) */
.beon-region-full {
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 6. TEKSTO LYGIAVIMAS DEŠINIAJAME STULPELYJE */
.beon-card-proright .field {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    width: 100%;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 8px;
}

.beon-card-proright .field:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.beon-card-proright .field__label {
    font-weight: 600;
    color: #718096;
    margin-right: 10px;
    min-width: 120px;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.beon-card-proright .field__item {
    font-weight: 500;
    color: #2d3748;
    text-align: right;
    flex: 1;
    font-size: 1rem;
}

/* 7. KONTAKTŲ FORMOS IR BLOKO APJUNGIMAS */

/* Bendras plotis ir centravimas */
#block-tarapro-tekstaskontaktuformosvirsuje,
.contact-message-form {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    background-color: #ffffff;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

/* Viršutinė dalis (Blokas) */
#block-tarapro-tekstaskontaktuformosvirsuje {
    border-top: 1px solid #e2e8f0;
    border-bottom: none;
    /* Nėra apatinio rėmelio, kad susilietų */
    border-radius: 12px 12px 0 0;
    /* Tik viršutiniai kampai */
    padding: 30px 30px 10px 30px;
    /* Mažesnis padding apačioje */
    margin-bottom: 0;
    /* Nėra tarpo apačioje */
    margin-top: 20px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.02), 0 0 4px rgba(0, 0, 0, 0.02);
    /* Švelnus šešėlis */
}

/* Paslepiame bloko pavadinimą (H2), nes vartotojas nori tik teksto */
#block-tarapro-tekstaskontaktuformosvirsuje h2 {
    display: none;
}

/* Apatinė dalis (Forma) */
.contact-message-form {
    border-top: none;
    /* Nėra viršutinio rėmelio */
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    /* Tik apatiniai kampai */
    padding: 10px 30px 30px 30px;
    /* Mažesnis padding viršuje */
    margin-top: 0;
    /* Nėra tarpo viršuje */
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* 8. LAUKŲ PLOČIAI (Visi 100%) */
.contact-message-form input[type="text"],
.contact-message-form input[type="email"],
.contact-message-form textarea,
.contact-message-form .form-item {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

/* Papildomas stilius laukams, kad atrodytų vienodai */
.contact-message-form input[type="text"],
.contact-message-form input[type="email"],
.contact-message-form textarea {
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 10px;
    margin-top: 5px;
    font-size: 1rem;
}

.contact-message-form label {
    font-weight: 600;
    color: #4a5568;
}

/* MOBILI VERSIJA */
@media (max-width: 992px) {
    .beon-layout-container {
        flex-direction: column;
    }

    .beon-card-proleft,
    .beon-card-proright,
    .beon-region-full {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .beon-card-proright .field {
        flex-direction: column;
        align-items: flex-start;
    }

    .beon-card-proright .field__label {
        margin-bottom: 2px;
    }

    .beon-card-proright .field__item {
        text-align: left;
    }
}