/* ── Contact Form ── */
.aw-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 42rem;
    margin: 0 auto;
    text-align: left;
}

.aw-form-grid .aw-field-full {
    grid-column: 1 / -1;
}

.aw-field {
    position: relative;
}

.aw-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.aw-field label .aw-required {
    color: var(--accent, #8b5cf6);
    margin-left: 0.15em;
}

.aw-field input,
.aw-field select,
.aw-field textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    -webkit-appearance: none;
    appearance: none;
}

.aw-field input::placeholder,
.aw-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.aw-field input:focus,
.aw-field select:focus,
.aw-field textarea:focus {
    border-color: var(--accent, #8b5cf6);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 139, 92, 246), 0.2);
}

.aw-field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255,255,255,0.5)' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.aw-field select option {
    background: #0a0a0f;
    color: #fff;
}

.aw-field textarea {
    resize: vertical;
    min-height: 8rem;
    max-height: 20rem;
}

.aw-field .aw-char-count {
    position: absolute;
    bottom: 0.65rem;
    right: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    transition: color 0.2s;
}

.aw-field .aw-char-count.aw-warn {
    color: #f59e0b;
}

.aw-field .aw-char-count.aw-over {
    color: #ef4444;
}

/* Honeypot - visually hidden, accessible to bots */
.aw-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
    tab-index: -1;
}

/* Submit button */
.aw-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-family: inherit;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent, #8b5cf6);
    border: 2px solid var(--accent, #8b5cf6);
    border-radius: 9999px;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
    box-shadow: 0 0 24px rgba(var(--accent-rgb, 139, 92, 246), 0.3);
    margin-top: 0.5rem;
}

.aw-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(var(--accent-rgb, 139, 92, 246), 0.5);
}

.aw-submit-btn:active {
    transform: translateY(0);
}

.aw-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.aw-submit-btn .aw-spinner {
    display: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: aw-spin 0.6s linear infinite;
}

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

.aw-submit-btn.aw-loading .aw-btn-label {
    opacity: 0.6;
}

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

/* Feedback area */
.aw-feedback {
    margin-top: 1.25rem;
    padding: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    border-radius: 0.75rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}

.aw-feedback.aw-visible {
    max-height: 10rem;
    opacity: 1;
    padding: 1rem 1.25rem;
}

.aw-feedback.aw-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.aw-feedback.aw-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Responsive: stack on mobile */
@media (max-width: 640px) {
    .aw-form-grid {
        grid-template-columns: 1fr;
    }
}
