/* 
==================================
Property Investing UK - Stylesheet
Author: [Pronto Prop LTD]
Description: Styles for the Property Investing UK landing page.
Version: 1.0
Last Updated: [26/03/2025]
==================================
*/


body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #2E4F5E;
    color: #F8E7B9;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    padding: 20px;
    position: fixed;
    width: 100%;
    background-color: #2E4F5E;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    top: 0;
    left: 0;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 20px;
}

header img {
    max-width: 75px; /* 50% smaller than original */
    transition: all 0.3s ease;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 50px;  /* Reduced top padding so the button and heading are closer */
    margin-bottom: 50px; /* Added space at the bottom to prevent footer overlap */
}

.wordmark {
    font-style: italic;
    font-weight: bold;
    font-size: 21px; /* Adjusted for proportion */
    color: #F8E7B9;
    margin-top: 5px;
}

h1 {
    font-size: clamp(48px, 6vw, 72px);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: normal;
    height: auto;  /* Remove the fixed height to allow dynamic adjustment */
    margin-bottom: 20px; /* Add margin between h1 and button */
}

.button {
    background-color: #F8E7B9;
    color: #2E4F5E;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    margin-top: 20px;
    border-radius: 5px;
    transition: background 0.3s ease;
    display: inline-block;
    z-index: 999; /* Ensure it is on top of other elements */
}

.button:hover {
    background-color: #d9c8a3;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    width: 4in;
    max-width: 90%;
}

input, select, textarea {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #F8E7B9;
    border-radius: 5px;
    font-size: 16px;
    background-color: rgba(248, 231, 185, 0.3);
    color: #0a1c24;
    transition: all 0.3s ease;
}

/* Adjust the text color when focusing on the input fields */
input:focus, select:focus, textarea:focus {
    color: #2E4F5E;  /* Darker text color when focused */
    border-color: #2E4F5E;  /* Same color as the header for consistency */
    outline: none;
    background-color: rgba(248, 231, 185, 0.5); /* Slightly darker background on focus */
}

/* Style the dropdown to match the text fields */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(248, 231, 185, 0.3); /* Match background with text fields */
    color: #0a1c24;  /* Darker text color for dropdown */
    border: 2px solid #F8E7B9;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Add a custom arrow to the dropdown */
select:focus {
    background-color: rgba(248, 231, 185, 0.5); /* Darker background on focus */
}

select::-ms-expand {
    display: none; /* Remove default dropdown arrow for consistent styling */
}

/* Add a custom dropdown arrow to the select field */
select {
    background-image: url('/assets/images/arrow-down.svg'); /* Custom arrow */
    background-repeat: no-repeat;
    background-position-x: right;
    background-position-y: center;
}

.footer {
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    background-color: #2E4F5E;
    position: relative;
    bottom: 0;
    white-space: nowrap;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* Additional CSS for form validation and error message styling */

/* Style for the error messages */
span {
    font-size: 12px;
    margin-top: 5px;
    color: #FF4D4D;  /* Red color for error messages */
    display: none;  /* Hidden by default */
}

/* Style for invalid input fields (border turns red) */
input:invalid {
    border-color: #FF4D4D;
}

/* Style for valid input fields (reset border to default) */
input:valid {
    border-color: #F8E7B9;  /* Original border color */
}





        
