/* Botanica Forms - Front-end styles */

.botanica-form-wrap {
    max-width: 860px;
    width: 100%;
    font-family: inherit;
    color: #333;
}

/* ── Layout rows ── */
.botanica-form-row {
    margin-bottom: 22px;
}

.botanica-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.botanica-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ── Labels ── */
.botanica-form-wrap label,
.botanica-field-group > label {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: #4a4a4a;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.botanica-required {
    color: #9b2335;
    margin-left: 2px;
    font-size: 14px;
}

.botanica-sub-label {
    display: block;
    font-size: 12px;
    color: #777;
    margin-top: 4px;
    letter-spacing: 0.01em;
}

/* ── Fields ── */
.botanica-form-wrap input[type="text"],
.botanica-form-wrap input[type="email"],
.botanica-form-wrap input[type="tel"],
.botanica-form-wrap textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #e8e8e8;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    padding: 10px 12px;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.botanica-form-wrap input[type="text"]:focus,
.botanica-form-wrap input[type="email"]:focus,
.botanica-form-wrap input[type="tel"]:focus,
.botanica-form-wrap textarea:focus {
    border-color: #9b7b3d;
    background: #f2ede4;
    box-shadow: 0 0 0 2px rgba(155, 123, 61, 0.15);
}

.botanica-form-wrap input.botanica-error,
.botanica-form-wrap textarea.botanica-error {
    border-color: #9b2335;
    background: #fdf2f3;
}

.botanica-form-wrap textarea {
    resize: vertical;
    min-height: 150px;
}

/* ── Field wrapper ── */
.botanica-field-wrap {
    position: relative;
    width: 100%;
}

.botanica-full {
    width: 100%;
}

/* ── Field errors ── */
.botanica-field-error {
    display: block;
    font-size: 12px;
    color: #9b2335;
    margin-top: 4px;
    min-height: 16px;
    font-style: italic;
}

/* ── reCAPTCHA ── */
.botanica-recaptcha-wrap {
    display: inline-block;
}

/* ── Submit button ── */
.botanica-submit-row {
    margin-top: 10px;
}

.botanica-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 36px;
    background: transparent;
    border: 1.5px solid #9b7b3d;
    color: #9b7b3d;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
    min-width: 160px;
    justify-content: center;
}

.botanica-submit-btn:hover,
.botanica-submit-btn:focus-visible {
    background: #9b7b3d;
    color: #fff;
    outline: 2px solid #9b7b3d;
    outline-offset: 2px;
}

.botanica-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Spinner ── */
.botanica-btn-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: botanica-spin 0.65s linear infinite;
    flex-shrink: 0;
}

.botanica-submit-btn.botanica-loading .botanica-btn-spinner {
    display: inline-block;
}

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

/* ── Response message ── */
.botanica-form-response {
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 15px;
    border-left: 4px solid transparent;
}

.botanica-form-response.botanica-success {
    background: #f0f7f0;
    border-left-color: #4a7c59;
    color: #2e5036;
}

.botanica-form-response.botanica-error-msg {
    background: #fdf2f3;
    border-left-color: #9b2335;
    color: #7a1a28;
}

/* ── Responsive ── */
@media ( max-width: 640px ) {
    .botanica-two-col,
    .botanica-name-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
