/**
 * NovaTheme — Forms & Buttons
 *
 * Base styles for inputs, textareas, selects, and buttons.
 * Used across all pages (search, comments, login, contact, etc.)
 */


/* ==========================================================================
   INPUTS & TEXTAREA
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="search"],
textarea,
select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--nt-text);
    background-color: var(--nt-white);
    border: 1px solid var(--nt-border);
    border-radius: 0;
    box-shadow: none;
    transition: border-color var(--nt-transition), color var(--nt-transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    color: var(--nt-black);
    border-color: var(--nt-green);
    outline: none;
}

input:disabled,
input[readonly],
textarea:disabled,
textarea[readonly] {
    background-color: var(--nt-gray-50);
    opacity: 1;
}

/* Placeholders */
::placeholder {
    color: var(--nt-gray-600);
    opacity: 1;
}

/* Textarea max height for comment forms */
textarea {
    resize: vertical;
    min-height: 100px;
}

/* Labels */
label {
    display: block;
    margin-bottom: var(--nt-space-xs);
    font-weight: 700;
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

input[type="submit"],
input[type="button"],
button[type="submit"],
.nf-button {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    font-size: 0.925rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--nt-white);
    background-color: var(--nt-green);
    border: none;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color var(--nt-transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button[type="submit"]:hover,
.nf-button:hover {
    background-color: var(--nt-green-hover);
    color: var(--nt-white);
}

/* Outline variant */
.nf-button-outline {
    background: transparent;
    border: 2px solid var(--nt-green);
    color: var(--nt-green);
}

.nf-button-outline:hover {
    background: var(--nt-green);
    color: var(--nt-white);
}


/* ==========================================================================
   FOOTER FORM OVERRIDES (dark background)
   ========================================================================== */

.nf-footer input[type="text"],
.nf-footer input[type="email"],
.nf-footer input[type="password"],
.nf-footer input[type="url"],
.nf-footer textarea {
    color: var(--nt-gray-300);
    background-color: rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.nf-footer input[type="text"]:focus,
.nf-footer input[type="email"]:focus,
.nf-footer input[type="password"]:focus,
.nf-footer input[type="url"]:focus,
.nf-footer textarea:focus {
    color: var(--nt-white);
    border-color: rgba(255, 255, 255, 0.2);
}

.nf-footer ::placeholder {
    color: var(--nt-gray-300);
}

.nf-footer input[type="submit"],
.nf-footer button[type="submit"] {
    background-color: var(--nt-green);
    border-color: var(--nt-green);
}

.nf-footer input[type="submit"]:hover,
.nf-footer button[type="submit"]:hover {
    background-color: var(--nt-green-hover);
}
