/* Château Prince Léopold — Formulaire de contact */

.cpl-form-wrapper {
    max-width: 720px;
    margin: 0 auto;
    font-family: Georgia, 'Times New Roman', serif;
    color: #2c2416;
}

.cpl-form-header {
    margin-bottom: 28px;
}

.cpl-form-title {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #2c2416;
    margin: 0 0 4px;
    padding: 0;
    border: none;
}

/* Grid */
.cpl-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin-bottom: 16px;
}

.cpl-row--full {
    grid-template-columns: 1fr;
}

.cpl-row--submit {
    margin-top: 8px;
}

.cpl-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cpl-field--empty {
    /* spacer column */
}

/* Labels */
.cpl-field label {
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #2c2416;
    font-family: Georgia, serif;
}

.cpl-required {
    color: #c9a84c;
}

/* Inputs */
.cpl-form-wrapper input[type="text"],
.cpl-form-wrapper input[type="email"],
.cpl-form-wrapper input[type="tel"],
.cpl-form-wrapper input[type="number"],
.cpl-form-wrapper input[type="date"],
.cpl-form-wrapper select,
.cpl-form-wrapper textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d4c9a8;
    background: #faf7f0;
    font-family: Georgia, serif;
    font-size: 14px;
    color: #2c2416;
    border-radius: 0;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.cpl-form-wrapper input::placeholder,
.cpl-form-wrapper textarea::placeholder {
    color: #b0a58a;
    font-style: italic;
}

.cpl-form-wrapper input:focus,
.cpl-form-wrapper select:focus,
.cpl-form-wrapper textarea:focus {
    outline: none;
    border-color: #c9a84c;
    background: #fff;
}

.cpl-form-wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.cpl-form-wrapper textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.7;
}

/* Submit button */
.cpl-btn {
    background: #c9a84c;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-family: Georgia, serif;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-block;
}

.cpl-btn:hover {
    background: #a8882e;
}

.cpl-btn:disabled {
    background: #c8b87a;
    cursor: not-allowed;
}

/* Messages */
.cpl-success {
    padding: 16px 20px;
    background: #f0f7f0;
    border-left: 3px solid #4a8c4a;
    color: #2a5a2a;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.cpl-errors {
    padding: 16px 20px;
    background: #fdf5f0;
    border-left: 3px solid #c0522a;
    color: #7a2a10;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.cpl-errors ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.cpl-errors li {
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 600px) {
    .cpl-row {
        grid-template-columns: 1fr;
    }
    .cpl-field--empty {
        display: none;
    }
    .cpl-btn {
        width: 100%;
        text-align: center;
    }
}
