/* DojoConnect Contact Form — v2.1.0 */

/* Wrapper */
.dc-cf-wrapper {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Two-column row */
.dc-cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Fields */
.dc-cf-field {
    margin-bottom: 1.5rem;
}

.dc-cf-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: #1a1a2e;
}

.dc-cf-field input,
.dc-cf-field select,
.dc-cf-field textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    color: #1a1a2e !important;
    background: #fff !important;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.dc-cf-field input::placeholder,
.dc-cf-field textarea::placeholder {
    color: #9ca3af;
}

.dc-cf-field input:focus,
.dc-cf-field select:focus,
.dc-cf-field textarea:focus {
    outline: none;
    border-color: #4f6d7a;
    box-shadow: 0 0 0 2px rgba(79, 109, 122, 0.15);
}

.dc-cf-field select {
    appearance: auto;
}

.dc-cf-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* Required asterisk */
.dc-cf-required {
    color: #dc2626;
}

/* Optional label */
.dc-cf-optional {
    font-weight: 400;
    color: #6b7280;
    font-size: 0.9em;
}

/* Footer row — Turnstile left, submit right */
.dc-cf-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    gap: 1rem;
}

/* Submit button */
.dc-cf-btn {
    background: #2d4a56;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.dc-cf-btn:hover {
    background: #3b5e6b;
}

.dc-cf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Feedback messages */
.dc-cf-success {
    padding: 1rem;
    background: #d1e7dd;
    border: 1px solid #a3cfbb;
    border-radius: 6px;
    color: #0a3622;
    margin-bottom: 1rem;
}

.dc-cf-error {
    padding: 1rem;
    background: #f8d7da;
    border: 1px solid #f1aeb5;
    border-radius: 6px;
    color: #58151c;
    margin-bottom: 1rem;
}

/* Responsive — stack to single column on mobile */
@media (max-width: 640px) {
    .dc-cf-wrapper {
        padding: 1.25rem;
    }

    .dc-cf-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dc-cf-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .dc-cf-btn {
        width: 100%;
        text-align: center;
    }
}
