/* ==========================================================================
   Shout Contact Form — Public Styles
   ========================================================================== */

/* Wrapper
   ========================================================================== */

.scf-wrap,
.scf-member-wrap {
    max-width: 640px;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #1a1a2e;
    box-sizing: border-box;
}

.scf-wrap *,
.scf-wrap *::before,
.scf-wrap *::after,
.scf-member-wrap *,
.scf-member-wrap *::before,
.scf-member-wrap *::after {
    box-sizing: border-box;
}

/* Form layout
   ========================================================================== */

.scf-form {
    display: block;
    margin: 0;
    padding: 0;
}

.scf-row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

@media ( max-width: 560px ) {
    .scf-row--2 {
        grid-template-columns: 1fr;
    }
}

/* Fields
   ========================================================================== */

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

.scf-field:last-of-type {
    margin-bottom: 24px;
}

.scf-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 7px;
}

.scf-field label span {
    color: #ef4444;
    margin-left: 1px;
    font-weight: 700;
}

.scf-field input[type="text"],
.scf-field input[type="email"],
.scf-field input[type="password"],
.scf-field textarea {
    display: block;
    width: 100%;
    background: #f4f5f7;
    border: 1.5px solid #e8e9ec;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #111827;
    line-height: 1.5;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.scf-field input[type="text"]:hover,
.scf-field input[type="email"]:hover,
.scf-field input[type="password"]:hover,
.scf-field textarea:hover {
    background: #eff0f3;
    border-color: #d1d5db;
}

.scf-field input[type="text"]:focus,
.scf-field input[type="email"]:focus,
.scf-field input[type="password"]:focus,
.scf-field textarea:focus {
    background: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.scf-field textarea {
    resize: vertical;
    min-height: 140px;
}

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

/* Submit button
   ========================================================================== */

.scf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 36px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.9375rem;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    line-height: 1;
    text-decoration: none;
    transition: filter 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
    margin-top: 4px;
}

.scf-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.scf-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    filter: brightness(0.97);
}

.scf-btn:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.4);
    outline-offset: 2px;
}

/* Notices
   ========================================================================== */

.scf-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.9375rem;
    line-height: 1.55;
    border-width: 1px;
    border-style: solid;
}

.scf-notice::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.scf-notice--success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.scf-notice--success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2316a34a'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.scf-notice--error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.scf-notice--error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23dc2626'%3E%3Cpath fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/* Member logged-in state
   ========================================================================== */

.scf-member-wrap p {
    font-size: 0.9375rem;
    color: #374151;
    margin: 0 0 12px;
}

.scf-member-wrap p a {
    color: #4f46e5;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.scf-member-wrap p a:hover {
    color: #3730a3;
}

/* Responsive
   ========================================================================== */

@media ( max-width: 480px ) {
    .scf-wrap,
    .scf-member-wrap {
        font-size: 0.9375rem;
    }

    .scf-field input[type="text"],
    .scf-field input[type="email"],
    .scf-field input[type="password"],
    .scf-field textarea {
        font-size: 1rem;
        padding: 11px 14px;
    }

    .scf-btn {
        width: 100%;
        padding: 14px 24px;
    }
}
