/* Modern Contact Form Styles */
.contact-form-21network {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.contact-form-21network .form-group {
    position: relative;
    margin-bottom: 2rem;
}

.contact-form-21network input,
.contact-form-21network textarea {
    width: 100%;
    padding: 1rem 0;
    font-size: 1rem;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    transition: all 0.3s ease;
    color: #333;
}

.contact-form-21network input:focus,
.contact-form-21network textarea:focus {
    outline: none;
    border-bottom: 1px solid #007bff;
}

.contact-form-21network input::placeholder,
.contact-form-21network textarea::placeholder {
    color: transparent;
}

.contact-form-21network label {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.contact-form-21network input:focus ~ label,
.contact-form-21network textarea:focus ~ label,
.contact-form-21network input:not(:placeholder-shown) ~ label,
.contact-form-21network textarea:not(:placeholder-shown) ~ label {
    top: -1.5rem;
    font-size: 0.875rem;
    color: #007bff;
}

.contact-form-21network textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-form-21network button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form-21network button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.contact-form-21network button:active {
    transform: translateY(0);
}

.contact-form-21network button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Messages Styling */
.contact-form-21network #form-message {
    margin-bottom: 2rem;
}

.success-message,
.error-message,
.info-message {
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    animation: slideIn 0.3s ease-out;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.info-message {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #1565c0;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Floating Label Animation */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.floating-label {
    position: absolute;
    pointer-events: none;
    left: 0;
    top: 1rem;
    transition: 0.2s ease all;
}

input:focus ~ .floating-label,
input:not(:placeholder-shown) ~ .floating-label,
textarea:focus ~ .floating-label,
textarea:not(:placeholder-shown) ~ .floating-label {
    top: -1.5rem;
    font-size: 0.875rem;
    color: #007bff;
}

/* Loading Animation */
.loading-dots:after {
    content: '.';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}
