/* ============================================================
   contact-modal.css — Modal kontaktowy na kliknięcie logo
   ============================================================ */

/* Overlay */
.contact-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}
.contact-modal-overlay.active {
    opacity: 1; visibility: visible;
}

/* Modal box */
.contact-modal {
    background: #141b2d;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    width: 90%; max-width: 560px;
    max-height: 90vh; overflow-y: auto;
    padding: 2.5rem 2rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.35s;
    position: relative;
}
.contact-modal-overlay.active .contact-modal {
    transform: translateY(0) scale(1);
}

/* Close button */
.cm-close {
    position: absolute; top: 1rem; right: 1.2rem;
    background: none; border: none; color: #8b949e;
    font-size: 1.5rem; cursor: pointer; transition: color 0.2s;
    line-height: 1;
}
.cm-close:hover { color: #f0f6fc; }

/* Title */
.cm-title {
    text-align: center; margin-bottom: 1.5rem;
}
.cm-title i { font-size: 1.8rem; color: #c9a84c; display: block; margin-bottom: 0.5rem; }
.cm-title h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; color: #f0f6fc;
}

/* Category icons grid */
.cm-categories {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem; margin-bottom: 1.5rem;
}
.cm-cat-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1rem 0.5rem; text-align: center;
    cursor: pointer; transition: all 0.25s;
    color: #8b949e;
}
.cm-cat-btn:hover { border-color: rgba(201,168,76,0.4); color: #c9a84c; }
.cm-cat-btn.selected {
    border-color: #c9a84c; background: rgba(201,168,76,0.08); color: #c9a84c;
}
.cm-cat-btn i { font-size: 1.4rem; display: block; margin-bottom: 0.35rem; }
.cm-cat-btn span { font-size: 0.68rem; line-height: 1.2; display: block; }

/* Form fields */
.cm-form .cm-field { margin-bottom: 1rem; }
.cm-form label {
    display: block; margin-bottom: 0.35rem;
    color: #8b949e; font-size: 0.85rem;
}
.cm-form input,
.cm-form textarea {
    width: 100%; padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: #f0f6fc; border-radius: 8px;
    font-family: 'Inter', sans-serif; font-size: 0.95rem;
    transition: border-color 0.2s;
}
.cm-form input:focus,
.cm-form textarea:focus {
    outline: none; border-color: #3b82f6;
}

/* Submit */
.cm-submit {
    width: 100%; padding: 1rem;
    background: linear-gradient(135deg, #e37e33, #c2571a);
    color: white; border: none; border-radius: 8px;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: box-shadow 0.3s, transform 0.2s;
    margin-top: 0.5rem;
}
.cm-submit:hover { box-shadow: 0 5px 20px rgba(227,126,51,0.4); transform: translateY(-2px); }

/* Success message */
.cm-success { display: none; text-align: center; padding: 2rem 0; }
.cm-success i { font-size: 3rem; color: #10b981; margin-bottom: 1rem; display: block; }
.cm-success h3 { color: #f0f6fc; margin-bottom: 0.5rem; }
.cm-success p { color: #8b949e; }

/* Responsive */
@media (max-width: 480px) {
    .cm-categories { grid-template-columns: repeat(3, 1fr); }
    .contact-modal { padding: 1.5rem 1.2rem; }
}
