/* Modern Black & White Contact Form Styles */
.contact-form-21network {
    max-width: 600px;
}

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

/* Bardziej specyficzne selektory do nadpisania stylów motywu */
.contact-form-21network input[type="text"],
.contact-form-21network input[type="email"],
.contact-form-21network input[type="tel"],
.contact-form-21network input[type="coupon"],
.contact-form-21network textarea {
    width: 100% !important;
    padding: 1.5rem 0 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: transparent !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: #000 !important;
    font-weight: 400 !important;
    letter-spacing: -0.01em !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
}

.contact-form-21network input[type="text"]:focus,
.contact-form-21network input[type="email"]:focus,
.contact-form-21network input[type="tel"]:focus,
.contact-form-21network input[type="coupon"]:focus,
.contact-form-21network textarea:focus {
    outline: none !important;
    border-bottom: 1px solid #000 !important;
    box-shadow: none !important;
}

.contact-form-21network input[type="text"]:-webkit-autofill,
.contact-form-21network input[type="email"]:-webkit-autofill,
.contact-form-21network input[type="tel"]:-webkit-autofill,
.contact-form-21network input[type="coupon"]:-webkit-autofill,
.contact-form-21network input[type="text"]:-webkit-autofill:hover,
.contact-form-21network input[type="email"]:-webkit-autofill:hover,
.contact-form-21network input[type="tel"]:-webkit-autofill:hover,
.contact-form-21network input[type="coupon"]:-webkit-autofill:hover,
.contact-form-21network input[type="text"]:-webkit-autofill:focus,
.contact-form-21network input[type="email"]:-webkit-autofill:focus,
.contact-form-21network input[type="tel"]:-webkit-autofill:focus,
.contact-form-21network input[type="coupon"]:-webkit-autofill:focus,
.contact-form-21network textarea:-webkit-autofill,
.contact-form-21network textarea:-webkit-autofill:hover,
.contact-form-21network textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

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

.contact-form-21network label {
    position: absolute;
    top: 1.5rem;
    left: 0;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.6);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

.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: -0.5rem;
    font-size: 0.875rem;
    color: #fff;
    font-weight: 500;
}

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

.contact-form-21network button {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background: #000;
    border: 1px solid #000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
    width: auto;
    min-width: 200px;
}

.contact-form-21network button:hover {
    background: transparent;
    color: #000;
}

.contact-form-21network button:disabled {
    background: #e0e0e0;
    border-color: #e0e0e0;
    cursor: not-allowed;
}

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

.success-message,
.error-message,
.info-message {
    padding: 1.25rem;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
    line-height: 1.5;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid;
}

.success-message {
    background: #f7f7f7;
    color: #000;
    border-color: #000;
}

.error-message {
    background: #fff;
    color: #dc2626;
    border-color: #dc2626;
}

.info-message {
    background: #f7f7f7;
    color: #000;
    border-color: rgba(0, 0, 0, 0.1);
}

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

/* 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: ''; }
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .contact-form-21network {
        padding: 2rem;
        margin: 2rem auto;
    }

    .contact-form-21network button {
        width: 100%;
    }
}
