/* proj/include/css/contact.css */

/* CSS STYLING */
body {
    background-color: #292929; /* Matches your Admin/Main theme */
    color: #fff;
    margin: 0;
    padding: 0;
}

.contact-wrapper {
    /* DARK THEME CARD STYLE */
    background: rgba(0, 0, 0, 0.25); /* Semi-transparent dark bg */
    border: 1px solid #444;          /* Subtle border */
    width: 90%;
    max-width: 500px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-radius: 8px;
    margin: 40px auto 0 auto;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    box-sizing: border-box; 
}

h2 {
    font-weight: 300;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.field-group {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa; /* Lighter gray for visibility */
    margin-bottom: 8px;
}

/* DARK INPUT FIELDS */
input, textarea {
    width: 100%;
    background: transparent; /* See-through background */
    border: none;
    border-bottom: 1px solid #555; /* Dark gray border */
    padding: 10px 0;
    font-size: 1rem;
    font-family: inherit;
    color: #fff; /* White text */
    resize: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box; 
}

/* Focus State */
input:focus, textarea:focus {
    outline: none;
    border-bottom: 1px solid #395B50; /* Theme Green on focus */
}

/* Submit Button - Matches Admin Buttons */
.send-btn {
    background-color: #444;
    color: white;
    border: 1px solid #666;
    padding: 12px 40px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    align-self: flex-start;
    border-radius: 4px;
    font-weight: bold;
}

.send-btn:hover {
    background-color: #555;
    border-color: #888;
}

.send-btn:active {
    transform: scale(0.98);
}

/* DARK MODE STATUS MESSAGES */
.status-msg {
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none; 
    border-radius: 4px;
}

.status-msg.active { display: block; }

.status-msg.success {
    background-color: rgba(22, 101, 52, 0.2); /* Dark transparent green */
    color: #86efac; /* Light pastel green text */
    border: 1px solid #166534;
}

.status-msg.error {
    background-color: rgba(153, 27, 27, 0.2); /* Dark transparent red */
    color: #fca5a5; /* Light pastel red text */
    border: 1px solid #991b1b;
}

.input-error {
    border-bottom: 1px solid #e74c3c !important; /* Bright red for errors */
}

/* FORCE DARK AUTOFILL BACKGROUND */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    /* 1. Cover the blue background with your dark gray color */
    -webkit-box-shadow: 0 0 0px 1000px #292929 inset !important;
    
    /* 2. Force the text color to white */
    -webkit-text-fill-color: #fff !important;
    
    /* 3. Keep your border transition visible */
    transition: background-color 5000s ease-in-out 0s;
}

/* --- MOBILE ADJUSTMENTS --- */
@media screen and (max-width: 600px) {
    .contact-wrapper {
        width: 95%;
        padding: 25px;
    }
    
    .send-btn {
        width: 100%;
        text-align: center;
    }
}