/* LNIC Form Styles - WordPress Plugin */
/* Matches Local News Impact Coalition website design patterns */

/* Main Form Container */
.lnic-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
}

/* Form Header */
.lnic-form-header {
    margin-bottom: 2rem;
    text-align: left;
}

.lnic-form-title {
    color: #1a1a1a;
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.lnic-form-description {
    color: #666;
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
}

/* Form Sections */
.lnic-form-section {
    margin-bottom: 2rem;
}

.lnic-section-title {
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 0.5rem;
}

/* Form Layout */
.lnic-form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lnic-form-row:last-child {
    margin-bottom: 0;
}

.lnic-form-col-half {
    flex: 1;
}

.lnic-form-col-full {
    width: 100%;
}

/* Form Labels */
.lnic-form-label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.lnic-required {
    color: #d63638;
    font-weight: normal;
}

/* Form Controls */
.lnic-form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.lnic-form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.lnic-form-control::placeholder {
    color: #757575;
    opacity: 1;
}

/* Textarea specific */
textarea.lnic-form-control {
    resize: vertical;
    min-height: 120px;
}

/* Community Description */
.lnic-community-description {
    color: #666;
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

/* Checkbox Styling */
.lnic-checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin-bottom: 0.75rem;
    position: relative;
}

.lnic-checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.lnic-checkmark {
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.lnic-checkbox-container:hover .lnic-checkmark {
    border-color: #0073aa;
}

.lnic-checkbox-container input:checked ~ .lnic-checkmark {
    background-color: #0073aa;
    border-color: #0073aa;
}

.lnic-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.lnic-checkbox-container input:checked ~ .lnic-checkmark:after {
    display: block;
}

.lnic-checkbox-container span:not(.lnic-checkmark) {
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

/* Help Text */
.lnic-help-text {
    color: #666;
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
    line-height: 1.4;
}

/* Submit Button */
.lnic-form-submit {
    margin-top: 2rem;
    text-align: left;
}

.lnic-submit-btn {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-transform: none;
    letter-spacing: normal;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.lnic-submit-btn:hover {
    background-color: #005a87;
    transform: translateY(-1px);
}

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

.lnic-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.lnic-submit-spinner {
    display: none;
}

.lnic-submit-btn.loading .lnic-submit-text {
    display: none;
}

.lnic-submit-btn.loading .lnic-submit-spinner {
    display: inline;
}

/* Messages */
#lnic-form-messages {
    margin-bottom: 1.5rem;
}

.lnic-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.lnic-message.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.lnic-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lnic-form-container {
        padding: 0 1rem;
    }

    .lnic-form-title {
        font-size: 1.875rem;
    }

    .lnic-form-row {
        flex-direction: column;
        gap: 0;
    }

    .lnic-form-col-half {
        margin-bottom: 1.5rem;
    }

    .lnic-form-col-half:last-child {
        margin-bottom: 0;
    }

    .lnic-submit-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .lnic-form-title {
        font-size: 1.5rem;
    }

    .lnic-section-title {
        font-size: 1.25rem;
    }

    .lnic-form-description {
        font-size: 1rem;
    }
}
