/* Contact Section */
.contact {
    padding: 40px 0 60px 0;
    background-color: var(--bauhaus-white);
}

.contact-note {
    max-width: 720px;
    margin: 0 auto 16px;
    padding: 14px 16px;
    background: var(--bauhaus-white);
    border-left: none;
    border-radius: 8px;
}

.contact-note p {
    margin: 0;
}

.contact-form {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    background: var(--bauhaus-white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    padding: 24px 20px;
}

/* Hide honeypot visually but keep it in DOM for bots */
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Left blue accent to match cards */
.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-blue);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-family: 'Roboto Mono', monospace;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.12);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Validation styles */
.form-control:invalid:not(:placeholder-shown) {
    border-color: var(--primary-red);
}

.form-control:valid:not(:placeholder-shown) {
    border-color: var(--primary-blue);
}

/* Form success message */
.form-success {
    background-color: #f3f8ff; /* subtle blue tint to match brand */
    border: 1px solid var(--primary-blue);
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    font-size: 30px;
    margin: 0 auto 20px;
}

.form-success h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

/* Animation hook */
.contact .highlight-row {
    display: flex;
    height: 10px;
    margin: 0;
    position: relative;
}

/* Footer */
footer {
    background-color: var(--bauhaus-black);
    color: var(--bauhaus-white);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Footer Logo */
.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.footer-logo-square {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-color: var(--primary-red);
}

/* Footer Links */
.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a,
.footer-contact a {
    color: var(--bauhaus-white);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer-nav a:hover,
.footer-contact a:hover,
.social-icon:hover {
    color: var(--primary-yellow);
}

/* Footer Contact Links: Match surrounding text */
.footer-contact a {
    color: inherit;
    text-decoration: none;
    font-family: inherit;
}

/* Footer Headings */
.footer-links h3,
.footer-contact h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 500;
}

/* Contact Items */
.contact-item {
    margin-bottom: 10px;
}

/* Social Icons */
.footer-social {
    margin-top: 20px;
}

.social-icon {
    display: inline-block;
    margin-right: 15px;
    font-size: 20px;
    color: var(--bauhaus-white);
    text-decoration: none;
    transition: color var(--transition-speed) ease, 
                transform var(--transition-speed) ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* Form Focus and Hover States */
.btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.1);
}

/* Form animation states */
@keyframes formSubmitSuccess {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.form-success.show {
    display: block !important;
    animation: formSubmitSuccess 0.5s ease forwards;
}

/* Input label float animation */
.form-group {
    position: relative;
}

.form-control:focus + .form-float-label,
.form-control:not(:placeholder-shown) + .form-float-label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    background-color: white;
    padding: 0 5px;
}

.form-float-label {
    position: absolute;
    left: 12px;
    top: 12px;
    color: #777;
    pointer-events: none;
    transition: all 0.2s ease;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    /* Add subtle footer visual effects on larger screens */
    .footer-logo-square {
        transition: transform var(--transition-speed) ease;
    }
    
    .footer-logo:hover .footer-logo-square {
        transform: rotate(45deg);
    }
}

/* Dark Mode Styles */
body.dark-mode .contact {
    background-color: #222;
}

body.dark-mode .form-control {
    background-color: #333;
    border-color: #444;
    color: #f5f5f5;
}

body.dark-mode .form-control:focus {
    box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.2);
}

body.dark-mode .form-label {
    color: #f5f5f5;
}

body.dark-mode .form-success {
    background-color: #0f1a33; /* deep blue tint for dark mode */
    border-color: var(--primary-blue);
}

/* Dark mode for contact note */
body.dark-mode .contact-note {
    background-color: #333;
}

body.dark-mode .form-success h3,
body.dark-mode .form-success p {
    color: #f5f5f5;
}

body.dark-mode .btn:focus {
    outline-color: var(--primary-yellow);
}

body.dark-mode .form-float-label {
    color: #aaa;
}

body.dark-mode .form-control:focus + .form-float-label,
body.dark-mode .form-control:not(:placeholder-shown) + .form-float-label {
    background-color: #333;
}
