/* ── Fundación El Sembrador – Formulario de Contacto ── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Lato:wght@300;400;700&display=swap');

.sem-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 16px 60px;
    background: linear-gradient(160deg, #f0f7f0 0%, #e8f5e0 100%);
    min-height: 100%;
    font-family: 'Lato', sans-serif;
}

.sem-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(60, 110, 60, 0.13);
    padding: 48px 44px 52px;
    width: 100%;
    max-width: 560px;
    position: relative;
    overflow: hidden;
}

.sem-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3a8a3e, #6dbf67, #3a8a3e);
}

/* ── Header ── */
.sem-header {
    text-align: center;
    margin-bottom: 36px;
}

.sem-logo-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3a8a3e, #6dbf67);
    border-radius: 50%;
    font-size: 28px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(58, 138, 62, 0.3);
}

.sem-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    color: #1e3d1f;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.sem-subtitle {
    font-size: 15px;
    color: #6b8c6c;
    font-weight: 300;
    margin: 0;
}

/* ── Fields ── */
.sem-field {
    margin-bottom: 22px;
}

.sem-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #2d5e2f;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 7px;
}

.sem-field label span {
    color: #e05a5a;
}

.sem-field input,
.sem-field textarea {
    width: 100%;
    border: 2px solid #ddeedd;
    border-radius: 10px;
    padding: 13px 16px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: #1e3d1f;
    background: #f9fdf9;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    box-sizing: border-box;
    outline: none;
    resize: vertical;
}

.sem-field input::placeholder,
.sem-field textarea::placeholder {
    color: #a8c4a9;
}

.sem-field input:focus,
.sem-field textarea:focus {
    border-color: #3a8a3e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(58, 138, 62, 0.1);
}

.sem-field input.has-error,
.sem-field textarea.has-error {
    border-color: #e05a5a;
    background: #fff8f8;
}

.sem-error {
    display: block;
    font-size: 12px;
    color: #e05a5a;
    margin-top: 5px;
    min-height: 16px;
}

/* ── Button ── */
.sem-btn {
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, #3a8a3e 0%, #5aad5e 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
    box-shadow: 0 4px 18px rgba(58, 138, 62, 0.35);
    margin-top: 8px;
}

.sem-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(58, 138, 62, 0.45);
}

.sem-btn:active:not(:disabled) {
    transform: translateY(0);
}

.sem-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── Success ── */
.sem-success {
    text-align: center;
    padding: 24px 0 8px;
    animation: semFadeIn 0.4s ease;
}

.sem-success-icon {
    font-size: 52px;
    margin-bottom: 14px;
}

.sem-success h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #1e3d1f;
    margin: 0 0 10px;
}

.sem-success p {
    font-size: 15px;
    color: #6b8c6c;
    margin: 0;
    line-height: 1.6;
}

/* ── Global Error ── */
.sem-error-global {
    background: #fff3f3;
    border: 1px solid #f5c6c6;
    border-radius: 10px;
    padding: 14px 18px;
    margin-top: 16px;
    text-align: center;
    animation: semFadeIn 0.3s ease;
}

.sem-error-global p {
    margin: 0;
    font-size: 14px;
    color: #c0392b;
}

/* ── Animation ── */
@keyframes semFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 540px) {
    .sem-card {
        padding: 36px 24px 40px;
    }
    .sem-title {
        font-size: 24px;
    }
}
