/* styles/contact.css */

body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    margin: 0;
    padding: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Connection Status Indicator (specific to contact page if needed, otherwise move to header.css or index.css) */
.connection-status {
    position: absolute;
    top: 10px;
    right: 20px;
    padding: 8px 16px;
    border: 2px solid #541767;
    border-radius: 20px; /* Pill shape */
    cursor: not-allowed;
    font-family: 'Comic Neue', cursive;
    font-size: 0.9em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; /* Default transparent background */
    color: #fff;
}

.connection-status.connected {
    background-color: #00ff7f;
    color: #121212;
    animation: pulse 1.5s infinite;
}

.connection-status.disconnected {
    background-color: #ff4d4d;
    color: #fff;
    animation: none;
}

.connection-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(255, 157, 0, 0.3);
}

/* Pulse animation for connected state */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

main {
    padding: 2em;
    background-color: #121212;
    color: #fff;
    flex: 1;
}

.contact-container {
    background-color: #1a1a1a;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #2d2d2d;
}

#contact-form {
    display: flex;
    flex-direction: column;
}

#contact-form label {
    display: block;
    margin-top: 1em;
    color: #ff9d00;
    font-weight: bold;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 0.8em;
    margin-top: 0.5em;
    border: 1px solid #541767;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
    background-color: #121212;
    color: #fff;
    transition: border-color 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #ff9d00;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 157, 0, 0.3);
}

#contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

#contact-form button {
    margin-top: 1.5em;
    padding: 0.8em 1.5em;
    background: linear-gradient(90deg, #541767 0%, #022253 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#contact-form button:hover {
    background: linear-gradient(90deg, #431257 0%, #011c43 100%);
    transform: translateY(-2px);
}

#response-message {
    margin-top: 1em;
    font-weight: bold;
    text-align: center;
    padding: 0.5em;
    border-radius: 4px;
    color: #fff;
}

footer {
    background: linear-gradient(90deg, #541767 0%, #022253 100%);
    color: #fff;
    text-align: center;
    padding: 1em 0;
    width: 100%;
}

.footer-links {
    margin-top: 0.5em;
}

.footer-links a {
    color: #ff9d00;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e68c00;
    text-decoration: underline;
}

/* Media queries for mobile responsiveness */
@media (max-width: 768px) {
    main {
        padding: 1em;
    }

    .contact-container {
        padding: 1.5em;
    }

    #contact-form input,
    #contact-form textarea {
        padding: 0.6em;
    }

    #contact-form button {
        padding: 0.6em 1.2em;
        font-size: 1em;
    }
}

@media (max-width: 600px) {
    .contact-container {
        padding: 1em;
    }

    #contact-form input,
    #contact-form textarea {
        padding: 0.6em;
    }

    #contact-form button {
        font-size: 0.9em;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.5em;
    }
}