/* ================================================
   CONTACT OVERLAY STYLES
   Send message to site operator
   ================================================ */

#contact-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

#contact-overlay.show {
    display: flex;
}

.contact-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 560px;
    width: 95%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-gray);
}

.contact-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.contact-close-btn:hover {
    color: var(--text-primary);
}

/* Body */
.contact-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Form */
.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-category-select {
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md, 8px);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: border-color 0.2s;
}

.contact-category-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.contact-subject-input {
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md, 8px);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: border-color 0.2s;
}

.contact-subject-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.contact-textarea {
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md, 8px);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-white);
    resize: vertical;
    min-height: 140px;
    max-height: 300px;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color 0.2s;
}

.contact-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.contact-textarea::placeholder {
    color: var(--text-muted);
}

/* Footer */
.contact-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-char-count {
    font-size: 12px;
    color: var(--text-muted);
}

.contact-submit-btn {
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md, 8px);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.contact-submit-btn:hover {
    background: var(--primary-hover, #6D28D9);
}

.contact-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Message feedback */
.contact-message {
    padding: 10px 14px;
    border-radius: var(--radius-md, 8px);
    font-size: 13px;
    display: none;
}

.contact-message.success {
    display: block;
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.contact-message.error {
    display: block;
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Responsive */
@media (max-width: 600px) {
    #contact-overlay {
        padding: 20px 10px;
    }

    .contact-card {
        width: 100%;
    }

    .contact-body {
        padding: 16px;
    }
}
