/* /assets/css/components/_contact-form.css */

.contact-form-wrapper {
    background: var(--color-white);
    padding: var(--spacing-l);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

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

.contact-form label {
    display: block;
    margin-bottom: var(--spacing-s);
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary-accent);
    box-shadow: 0 0 0 3px rgba(8, 4, 252, 0.2); /* SPREMEMBA: Ujemanje z novo barvo */
}

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

.form-message {
    margin-top: var(--spacing-m);
    padding: var(--spacing-m);
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out, margin 0.3s ease-in-out, padding 0.3s ease-in-out;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
}

.form-message.visible {
    opacity: 1;
    max-height: 100px;
    padding-top: var(--spacing-m);
    padding-bottom: var(--spacing-m);
    margin-top: var(--spacing-m);
}

.form-message.success {
    background-color: rgba(70, 180, 130, 0.1);
    color: #3a926a;
    border: 1px solid #46B482;
}

.form-message.error {
    background-color: rgba(180, 70, 70, 0.1);
    color: #b44646;
    border: 1px solid #b44646;
}

/* === STILI ZA ŠTEVEC ZNAKOV (DODANO) === */
.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: #777;
    margin-top: var(--spacing-s);
    transition: color 0.3s ease-in-out;
}

.char-counter.warning {
    color: #d98d00; /* Oranžna barva za opozorilo */
    font-weight: 600;
}

.char-counter.limit {
    color: #b44646; /* Rdeča barva za preseženo omejitev */
    font-weight: 600;
}