/* ─── Wrapper ─────────────────────────────────────────────── */
.lpc-wrap {
    display: flex;
    align-items: stretch;
    min-height: 560px;
    font-family: ABCROM, Inter, "Helvetica Neue", helvetica, arial, sans-serif;
    color: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0,0,0,.10);

    /* Full-width breakout: positioned via script.js */
}

.lpc-form-side {
    flex: 1 1 480px;
    padding: 48px 52px;
    background: #fff;
    box-sizing: border-box;
}

.lpc-image-side {
    flex: 1 1 440px;
    background-size: cover;
    background-position: center top;
    min-height: 400px;
}

.lpc-no-image .lpc-form-side {
    max-width: 600px;
    margin: 0 auto;
    box-shadow: none;
    border-radius: 16px;
}

/* ─── Heading ─────────────────────────────────────────────── */
.lpc-wrap .lpc-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
    line-height: 1.25 !important;
}

.lpc-subtitle {
    font-size: .95rem;
    color: #555;
    margin: 0 0 28px;
    line-height: 1.55;
}

/* ─── Layout rows ─────────────────────────────────────────── */
.lpc-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.lpc-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lpc-field.lpc-full {
    flex: 1 1 100%;
}

.lpc-field label {
    font-size: .82rem;
    font-weight: 600;
    color: #333;
    letter-spacing: .01em;
}

.lpc-required {
    color: #e53e3e;
}

/* ─── Inputs ──────────────────────────────────────────────── */
.lpc-field input[type="text"],
.lpc-field input[type="email"],
.lpc-field input[type="tel"],
.lpc-field select,
.lpc-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    font-size: .92rem;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s;
    -webkit-appearance: none;
}

.lpc-field input:focus,
.lpc-field select:focus,
.lpc-field textarea:focus {
    outline: none;
    border-color: #6fcf6f;
    box-shadow: 0 0 0 3px rgba(111,207,111,.15);
}

.lpc-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* ─── Phone with prefix ───────────────────────────────────── */
.lpc-phone-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .15s;
}

.lpc-phone-wrap:focus-within {
    border-color: #6fcf6f;
    box-shadow: 0 0 0 3px rgba(111,207,111,.15);
}

.lpc-prefix {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: #f5f5f5;
    font-size: .88rem;
    font-weight: 600;
    color: #555;
    border-right: 1.5px solid #d0d0d0;
    white-space: nowrap;
}

.lpc-phone-wrap input[type="tel"] {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    flex: 1;
}

/* ─── Terms checkbox ──────────────────────────────────────── */
.lpc-terms-row {
    margin-bottom: 24px;
}

.lpc-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .82rem;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
}

.lpc-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #5cb85c;
    cursor: pointer;
}

.lpc-checkbox-label a {
    color: #3b7a3b;
    text-decoration: underline;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.lpc-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.lpc-btn-primary {
    padding: 12px 28px;
    background: #5cb85c;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    font-family: inherit;
}

.lpc-btn-primary:hover {
    background: #4cae4c;
}

.lpc-btn-primary:active {
    transform: scale(.97);
}

.lpc-btn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ─── Messages ────────────────────────────────────────────── */
.lpc-error,
.lpc-success {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .88rem;
    margin-bottom: 16px;
}

.lpc-error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.lpc-success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .lpc-wrap {
        flex-direction: column;
        border-radius: 12px;
    }

    .lpc-image-side {
        order: -1;
        min-height: 220px;
        flex: none;
    }

    .lpc-form-side {
        padding: 32px 24px;
    }

    .lpc-row {
        flex-direction: column;
        gap: 12px;
    }
}
