/* [v4.16.80hm +theme-single-mode-dark 2026-05-09 Q3-batch-62.4] auto-migrated hex literals to var(--aict-*) tokens */
/**
 * AICT Contact Form Styles
 * @package AICT_Core
 * @since 1.5.5
 */

.aict-contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.aict-form-group {
    margin-bottom: 1.5rem;
}

.aict-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--aict-midnight-2);
}

.aict-input,
.aict-select,
.aict-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--aict-border, #e0e0e0);
    border-radius: 8px;
    background-color: var(--aict-bg, #fff);
    transition: border-color var(--aict-transition-fast), box-shadow var(--aict-transition-fast);
}

.aict-input:focus,
.aict-select:focus,
.aict-textarea:focus {
    outline: none;
    border-color: var(--aict-pro-from, #5c5fe6);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.aict-input::placeholder,
.aict-textarea::placeholder {
    color: var(--aict-text-soft, #9e9e9e);
}

.aict-textarea {
    resize: vertical;
    min-height: 120px;
}

.aict-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Honeypot field - hidden from humans */
.aict-hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.aict-form-actions {
    margin-top: 2rem;
}

.aict-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--aict-transition-fast);
}

.aict-btn-primary {
    background: linear-gradient(135deg, var(--aict-pro-from, #5c5fe6), #8b5cf6);
    /* Literal, not var(--aict-bg): that token is the PAGE background and flips
       dark, which would follow the page instead of this indigo gradient. */
    color: #fff;
    width: 100%;
}

.aict-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.aict-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.aict-btn .btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aict-btn .btn-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;  /* same reason as .aict-btn-primary above */
    border-radius: 50%;
    animation: aict-spin var(--aict-animation-spin-dur, 0.8s) linear infinite;
}

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

.aict-form-message {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.aict-form-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--aict-success, #15803d);
}

.aict-form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--aict-danger, #dc2626);
}

.aict-form-message ul {
    margin: 0;
    padding-left: 1.25rem;
}

.aict-form-message li {
    margin-bottom: 0.25rem;
}

/* Responsive */
@media (max-width: 640px) {
    .aict-contact-form {
        padding: 1rem;
    }

    .aict-btn-primary {
        padding: 1rem;
    }
}


/* Dark theme [2026-09-02]. This sheet had no dark rule of any kind. Two defects,
   both measured on prod in the chosen-dark state at 1440x900:

     .aict-form-group label   color:var(--aict-midnight-2) = #1a1a2e
                              on the page ground #0f0f1a  ->  1.05:1
                              ("Your Name *", "Email Address *", "Subject *",
                              "Message *" — every label on the form, invisible)

   --aict-midnight-2 is a NAMED-DARK token: it means "our dark navy", not "the
   ink for the current theme", so it never follows the theme and a fallback
   would not have helped. The inputs are fine already (#e2e8f0 on #1e293b) —
   only the labels were left behind. (Styling stops there on purpose: the sheet's
   .aict-form-hint / .aict-form-note selectors match nothing in the served
   markup, and a rule for an element that does not exist is not coverage.)

   Second defect, same file: .aict-btn-primary and its spinner take
   color:var(--aict-bg, #fff). --aict-bg is the PAGE background token and flips
   dark, so the button's own ink follows the page instead of the indigo
   gradient it sits on. The button surface is a gradient in every theme, so the
   ink is a literal white — an unthemed value for an unthemed surface. */
html[data-theme="dark"] .aict-form-group label { color: #e2e8f0; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .aict-form-group label { color: #e2e8f0; }
}
