/* contact.css */

/*
   This file contains styles specific to the contact.html page.
   It should be linked AFTER style.css and background.css in contact.html
*/

body {
    /* New background image for the contact page */
    background-image: url('background4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #2c3e50; /* Fallback */
}

/* --- Uncommented: Removing the gold frame from the contact page --- */
.frame-wrapper {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-image: none !important;
    background-color: transparent !important;

    /* Ensure positioning for content box is still correct */
    position: absolute; /* Keep absolute to cover viewport */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex; /* Maintain flex for content centering */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    overflow: hidden; /* To prevent scrollbars from the frame extending outside */
    box-sizing: border-box;
}


.content {
    background-color: rgba(10, 25, 45, 0.8); /* Slightly less translucent for better form readability */
    padding: 25px 35px; /* Further reduced padding */
    max-width: 500px; /* Set a fixed max-width for forms for better readability */
    width: 90%; /* Ensure it's responsive on smaller screens */
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.4); /* Slightly stronger gold border for definition */
    text-align: left; /* Keep text aligned left within the box */
}

h1 {
    color: #F8F8F8; /* White/light gray like main page */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    font-size: 3em; /* Reduced from 3.5em to 3em */
    text-align: center; /* Center the heading on contact page */
    margin-bottom: 10px; /* Further reduced margin-bottom from 15px to 10px */
    word-spacing: -2px; /* Reduce gap between words for H1 */
}

p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #E0E0E0;
    text-align: center; /* Center the introductory paragraph */
    margin-bottom: 20px; /* Reduced margin-bottom from 30px to 20px */
    word-spacing: -1px; /* Reduce gap between words for paragraphs */
}

.contact-form {
    display: flex;
    flex-direction: column; /* Stack form elements vertically */
    gap: 10px; /* Further reduced gap between form groups */
}

.form-group {
    margin-bottom: 0; /* Removed default margin-bottom as gap handles spacing */
}

.form-group label {
    display: block; /* Make labels take full width, putting input on next line */
    margin-bottom: 8px; /* Space between label and input */
    color: #FFD700; /* Gold color for labels */
    font-size: 1.1em;
    font-weight: bold;
    word-spacing: -0.5px; /* Reduce gap between words for labels */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: calc(100% - 24px); /* Full width minus padding for input/textarea */
    padding: 12px;
    border: 1px solid #c79a5b; /* Goldish border */
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly translucent white background */
    color: #F8F8F8; /* Light text color for input */
    font-family: 'Lora', serif;
    font-size: 1em;
    outline: none; /* Remove default outline on focus */
    transition: border-color 0.3s ease, background-color 0.3s ease;
    word-spacing: normal; /* Keep normal spacing for input text */
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    border-color: #f7dfa5; /* Lighter gold on focus */
    background-color: rgba(255, 255, 255, 0.15); /* Slightly brighter background on focus */
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5); /* Soft gold glow on focus */
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing only */
    min-height: 100px; /* Slightly reduced min-height for textarea */
}

/* Ensure the submit button uses the exact main page button styles */
.submit-button {
    /* Overrides for specific submit button alignment */
    margin: 20px auto 0;
    display: block;

    /* Copy of .button styles from style.css for submit-button */
    padding: 15px 40px;
    background: linear-gradient(to right, #d4af37, #f7dfa5, #d4af37);
    color: #5d4a1f;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #8c6b14;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.submit-button:hover {
    background: linear-gradient(to left, #d4af37, #f7dfa5, #d4af37);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    color: #3d342d;
}


.button-group {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin-top: 20px; /* <--- CHANGED: Reduced margin-top for button group */
}

/* Ensure navigation buttons use the main page style */
.button-group .button {
    padding: 10px 20px; /* <--- CHANGED: Reduced padding for navigation buttons */
    font-size: 0.9em; /* <--- CHANGED: Reduced font size for navigation buttons */
}

/* Ensuring common button hover styles are also applied if they are not picked up from style.css */
.button-group .button:hover {
    background: linear-gradient(to left, #d4af37, #f7dfa5, #d4af37);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    color: #3d342d;
}