/* CSS for contactPresentation.php */

.contact-container { 
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.contact-title {
    font-weight: 600; 
    color: #2E61B0; 
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Alerts */

.alert {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Actual form frame */
.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    max-width: 400px;
    margin: 20px auto;
    background-color: var(--main-color);
    padding: 20px;
    box-shadow:
    -50px -50px 0 -43px var(--secundary-color),
    50px 50px 0 -43px var(--secundary-color);
}

/* Form field styles */
.form-field {
    display: flex;
    width: 100%;
    flex-direction: column;
}

.form-field label {
    display: flex;
    margin-bottom: 10px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
    display: flex;
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 0px;
    padding: 10px;
    margin-bottom: 10px;
}

.form-field input[type="text"],
.form-field input[type="email"] {
    max-width: 200px;
}

.form-field textarea {
    resize: vertical; 
    height: 150px;
}


/* Submit button container */

button
{
    background: none;
    border: none;
}

.form-submit-container {
    display: flex;
    width: 100%;
    justify-content: flex-end;
}

.form-submit, button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 80px;
    height: 80px;
}

.submit-button {
    width: 100%;
    height: auto;
    border: none;
    position: relative;
}

.submit-text {
    position: absolute;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    padding-top: 10px;
    padding-right: 5px;
    text-shadow: 4px 4px 6px black;
    z-index: 100;
    /* font-family: 'Baskerville Old Face', serif; */
}

.policy-link {
    font-size: 12px; 
    margin-top: 15px;
    text-align: left; 
    color: var(--secundary-color); 
}

.policy-link a {
    font-size: 12px; 
    color: white;
    transition: color 0.3s; 
}

.policy-link a:hover {
    color: var(--secundary-color); 
}

@media (max-width: 768px) {
    .contact-container,
    .contact-form {
        padding: 20px;
        align-items: center;
    }

    .form-submit-container {
        justify-content: center;
    }
    .submit-text {
        padding-right: 0px;
    }
}

/* ================= Contact Details ================= */

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* background-color: #f9f9f9; */
    /* border: 1px solid var(--main-color); */
    /* border-radius: 10px; */
    padding: 20px;
    margin: 40px auto;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-address,
.contact-realtor,
.contact-credentials,
.contact-info {
    color: var(--main-color-dark);
    font-family: 'Roboto Condensed', sans-serif;
    text-align: center;
    margin: 10px 0;
}

.contact-photo {
    width: 220px;
    height: auto;
    /* border-radius: 50%; */
    margin: 20px 0;
    /* border: 2px solid var(--secundary-color); */
}

.email-link {
    color: var(--secundary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.email-link:hover {
    color: var(--secundary-color-dark);
}

@media (max-width: 768px) {
    .contact-details {
        padding: 15px;
    }
    .contact-address,
    .contact-realtor,
    .contact-credentials,
    .contact-info {
        font-size: 0.9em;
    }
    .contact-photo {
        width: 180px;
    }
}
