/* ====================================================
 * Contacts Page — bukrek_contacts shortcode
 * /css/contacts-page.css
 * ==================================================== */

.bk-contacts-header {
    text-align: center;
    padding: 50px 0 40px;
}

.bk-contacts-header__sub {
    font-size: 12px;
    letter-spacing: 3px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.bk-contacts-header__title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
}

.bk-contacts-header__line {
    width: 50px;
    height: 3px;
    background: #C41E1E;
    margin: 14px auto 0;
}

/* --- Page title --- */
.bk-contacts-page-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 40px 0 0;
    padding-bottom: 16px;
    position: relative;
}

.bk-contacts-page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: #ccc;
    margin: 14px auto 30px;
}

/* --- Top section: info + map --- */
.bk-contacts-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Contact info card --- */
.bk-contacts-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 28px 30px;
}

.bk-contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.bk-contact-row:first-child {
    padding-top: 0;
}

.bk-contact-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bk-contact-row__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: #EBF3FB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bk-contact-row__icon svg {
    width: 23px;
    height: 23px;
    stroke: #4A90C4;
    stroke-width: 1.5;
    fill: none;
}

.bk-contact-row__label {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.bk-contact-row__value {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.6;
}

.bk-contact-row__value a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.bk-contact-row__value a:hover {
    color: #C41E1E;
}

/* --- Socials --- */
.bk-contacts-socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.bk-contacts-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.bk-contacts-socials a:hover {
    border-color: #C41E1E;
    color: #C41E1E;
}

.bk-contacts-socials a svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* --- Map card --- */
.bk-contacts-map {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bk-contacts-map iframe {
    flex: 1;
    width: 100%;
    min-height: 300px;
    border: none;
    display: block;
}

.bk-contacts-map__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
}

.bk-contacts-map__label {
    color: #999;
}

.bk-contacts-map__link {
    color: #C41E1E;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.bk-contacts-map__link:hover {
    opacity: 0.7;
}

/* --- Form card --- */
.bk-contacts-form-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px 34px;
    margin-bottom: 60px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.bk-contacts-form__title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.bk-contacts-form__subtitle {
    font-size: 14px;
    color: #888;
    margin: 0 0 24px;
}

.bk-contacts-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.bk-contacts-form__row .bk-contacts-form__field-wrap {
    margin-bottom: 0;
}

.bk-contacts-form__field {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 24px;
    padding: 12px 20px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
}

.bk-contacts-form__field::placeholder {
    color: #aaa;
}

.bk-contacts-form__field:focus {
    border-color: #999;
}

.bk-contacts-form__field--textarea {
    min-height: 90px;
    resize: vertical;
    margin-bottom: 4px;
    border-radius: 16px;
}

.bk-contacts-form__field-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
}

.bk-field-error {
    font-size: 11px;
    color: #999;
    display: block;
    line-height: 1.3;
}

.bk-field--error {
    border-color: #bbb !important;
}

/* Spinner */
.bk-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bk-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.bk-contacts-form__submit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bk-contacts-form__submit.is-loading .bk-btn-text {
    opacity: 0.7;
}

.bk-contacts-form__submit.is-loading .bk-btn-spinner {
    display: inline-block;
}

@keyframes bk-spin {
    to { transform: rotate(360deg); }
}

/* Success message fade */
.bk-contacts-form__message {
    transition: opacity 0.5s ease;
}

.bk-contacts-form__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bk-contacts-form__privacy {
    font-size: 13px;
    color: #aaa;
}

.bk-contacts-form__submit {
    background: #C41E1E;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 12px 36px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.bk-contacts-form__submit:hover {
    background: #a81818;
}

/* --- Success/error messages --- */
.bk-contacts-form__message {
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.bk-contacts-form__message--success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.bk-contacts-form__message--error {
    background: #fce4ec;
    border: 1px solid #ef9a9a;
    color: #c62828;
}

/* --- Field wrap & label --- */
.bk-contacts-form__field-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.bk-contacts-form__label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.5px;
}

.bk-req {
    color: #C41E1E;
}

.bk-field-error {
    font-size: 12px;
    color: #C41E1E;
    min-height: 16px;
    display: block;
}

.bk-contacts-form__field.bk-field--error {
    border-color: #C41E1E;
}

/* Remove margin-bottom from fields inside wraps */
.bk-contacts-form__field-wrap .bk-contacts-form__field {
    margin-bottom: 0;
}

/* --- Spinner --- */
.bk-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bk-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes bk-spin {
    to { transform: rotate(360deg); }
}

.bk-contacts-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bk-contacts-form__submit.is-loading .bk-btn-text {
    opacity: 0.7;
}

.bk-contacts-form__submit.is-loading .bk-btn-spinner {
    display: block;
}

/* Success message fade */
.bk-contacts-form__message {
    transition: opacity 0.5s ease;
}

/* Honeypot */
.bk-contacts-form__hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .bk-contacts-top {
        grid-template-columns: 1fr;
    }

    .bk-contacts-map iframe {
        min-height: 260px;
    }

    .bk-contacts-form__row {
        grid-template-columns: 1fr;
    }

    .bk-contacts-form__bottom {
        flex-direction: column;
        gap: 14px;
        align-items: stretch;
        text-align: center;
    }

    .bk-contacts-form__submit {
        width: 100%;
    }

    .bk-contacts-header__title {
        font-size: 26px;
    }

    .bk-contacts-card {
        padding: 20px;
    }

    .bk-contacts-form-card {
        padding: 20px;
    }
}