/**
 * Contact page — form + success (loads after global styles).
 */

.contact-form-section {
    background: linear-gradient(180deg, #ffffff 0%, #f7fcf9 40%, #f0f7f3 100%);
}

.contact-form-wrap {
    max-width: 920px;
    margin: 0 auto;
}

.contact-form-intro {
    text-align: center;
    margin-bottom: 28px;
}

.contact-form-intro h2 {
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f3d1f;
    margin: 0 0 10px;
    line-height: 1.2;
}

.contact-form-intro p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #4b5563;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cws-contact-card {
    background: linear-gradient(165deg, #ffffff 0%, #fbfffc 42%, #f4faf6 100%);
    border-radius: 22px;
    border: 1px solid rgba(67, 182, 73, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 6px 22px rgba(19, 66, 39, 0.07),
        0 22px 50px rgba(15, 23, 42, 0.08);
    padding: clamp(26px, 4.5vw, 42px);
}

.cws-contact-success {
    text-align: center;
    padding: clamp(28px, 5vw, 48px) 24px;
}

.cws-contact-success .cws-success-ico {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    background: linear-gradient(145deg, #43b649 0%, #2d8a33 100%);
    box-shadow: 0 10px 28px rgba(67, 182, 73, 0.4);
}

.cws-contact-success h2 {
    margin: 0 0 12px;
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f3d1f;
}

.cws-contact-success p {
    margin: 0 0 22px;
    color: #4b5563;
    line-height: 1.55;
    font-size: 1.05rem;
}

.cws-contact-success a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none !important;
    color: #fff !important;
    background: linear-gradient(135deg, #43b649 0%, #2d8a33 100%);
    box-shadow: 0 8px 22px rgba(67, 182, 73, 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cws-contact-success a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(67, 182, 73, 0.4);
}

.cws-form-rows {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 22px;
}

.cws-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 26px;
    align-items: start;
}

.cws-form-row .cws-field {
    margin-bottom: 0;
}

.cws-field {
    margin-bottom: 20px;
}

.cws-field--full {
    margin-bottom: 12px;
}

.cws-field label {
    display: block;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #1a5c28;
    margin-bottom: 9px;
}

.cws-field label .cws-req {
    color: #c2410c;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
}

.cws-field label .cws-optional {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.82rem;
    text-transform: none;
    letter-spacing: 0.02em;
}

.cws-field input[type="text"],
.cws-field input[type="email"],
.cws-field input[type="tel"],
.cws-field textarea {
    width: 100%;
    box-sizing: border-box;
    border-radius: 14px;
    border: 1px solid rgba(7, 7, 7, 0.1);
    padding: 15px 17px;
    font-size: 1rem;
    font-family: Lato, sans-serif;
    color: #111827;
    background: linear-gradient(180deg, #ffffff 0%, #f9faf9 100%);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.cws-field textarea {
    min-height: 168px;
    resize: vertical;
    line-height: 1.55;
}

.cws-field input:hover,
.cws-field textarea:hover {
    border-color: rgba(67, 182, 73, 0.35);
    background: #fff;
}

.cws-field input:focus,
.cws-field textarea:focus {
    outline: none;
    border-color: #43b649;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(67, 182, 73, 0.22);
}

.cws-field.cws-has-error input,
.cws-field.cws-has-error textarea {
    border-color: #dc2626;
    background: #fff5f5;
}

.cws-field-error {
    display: none;
    margin-top: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #b91c1c;
}

.cws-field.cws-has-error .cws-field-error {
    display: block;
}

.cws-form-actions {
    margin-top: 8px;
}

.cws-form-actions button[type="submit"] {
    width: 100%;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #43b649 0%, #2d8a33 100%);
    box-shadow: 0 10px 28px rgba(67, 182, 73, 0.35);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.2s ease;
}

.cws-form-actions button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(67, 182, 73, 0.42);
}

.cws-form-actions button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.cws-form-note {
    margin-top: 14px;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.45;
}

.cws-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cws-alert-global {
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 22px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.45;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

@media (max-width: 767.98px) {
    .cws-contact-card {
        border-radius: 16px;
        padding: 20px 18px;
    }
}

@media (max-width: 575.98px) {
    .cws-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
