/**
 * LC Contact v1.0.0 — Style La Croquetterie
 */

/* ── WRAPPER ── */
.lc-contact-form-wrapper {
    max-width: 740px;
    margin: 0 auto;
    padding: 20px 0 40px;
}

/* ── ALERTES ── */
.lc-contact-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}
.lc-contact-alert svg {
    flex: 0 0 auto;
    margin-top: 2px;
}
.lc-contact-alert p {
    margin: 0 0 4px;
}
.lc-contact-alert p:last-child {
    margin-bottom: 0;
}
.lc-contact-success {
    background: rgba(167, 188, 68, 0.1);
    border: 1px solid #a7bc44;
    color: #5a6b1e;
}
.lc-contact-success svg {
    color: #a7bc44;
}
.lc-contact-error {
    background: rgba(215, 38, 82, 0.08);
    border: 1px solid #d72652;
    color: #a01d3e;
}
.lc-contact-error svg {
    color: #d72652;
}

/* ── FORMULAIRE ── */
.lc-contact-form {
    position: relative;
}

.lc-contact-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.lc-contact-row > .lc-contact-field {
    flex: 1 1 0%;
    min-width: 0;
}

.lc-contact-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.lc-contact-full {
    margin-bottom: 16px;
}

/* Labels */
.lc-contact-field label {
    font-size: 13px;
    font-weight: 600;
    color: #414142;
    letter-spacing: 0.01em;
}
.lc-contact-field .required {
    color: #d72652;
    font-weight: 400;
}

/* Inputs */
.lc-contact-field input[type="text"],
.lc-contact-field input[type="email"],
.lc-contact-field input[type="tel"],
.lc-contact-field textarea,
.lc-contact-field select {
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.lc-contact-field input:focus,
.lc-contact-field textarea:focus,
.lc-contact-field select:focus {
    border-color: #a7bc44;
    outline: none;
    box-shadow: 0 0 0 3px rgba(167, 188, 68, 0.12);
}
.lc-contact-field input::placeholder,
.lc-contact-field textarea::placeholder {
    color: #bbb;
}
.lc-contact-field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* Select arrow custom */
.lc-contact-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* File input */
.lc-contact-field input[type="file"] {
    padding: 8px 12px;
    border: 1.5px dashed #ddd;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s;
}
.lc-contact-field input[type="file"]:hover {
    border-color: #a7bc44;
}
.lc-contact-hint {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* ── BOUTON SUBMIT ── */
.lc-contact-submit {
    margin-top: 8px;
}
.lc-contact-submit button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: #a7bc44;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
    letter-spacing: 0.02em;
}
.lc-contact-submit button:hover {
    background: #96ab3a;
    transform: translateY(-1px);
}
.lc-contact-submit button:active {
    transform: translateY(0);
}
.lc-contact-submit button svg {
    flex: 0 0 auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .lc-contact-form-wrapper {
        padding: 16px 0 30px;
    }
    .lc-contact-row {
        flex-direction: column;
        gap: 12px;
    }
    .lc-contact-field input[type="text"],
    .lc-contact-field input[type="email"],
    .lc-contact-field input[type="tel"],
    .lc-contact-field textarea,
    .lc-contact-field select {
        font-size: 16px; /* Empêche le zoom auto iOS */
        padding: 12px 14px;
    }
    .lc-contact-submit button {
        width: 100%;
        justify-content: center;
    }
}
