/* Import Eurostile Unicase LT W04 Rg font */
@font-face {
    font-family: "Eurostile Unicase LT W04 Rg";
    src: url("https://db.onlinewebfonts.com/t/e2aba67a61a20987775ae4a14c15dd81.eot");
    src: url("https://db.onlinewebfonts.com/t/e2aba67a61a20987775ae4a14c15dd81.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/e2aba67a61a20987775ae4a14c15dd81.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/e2aba67a61a20987775ae4a14c15dd81.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/e2aba67a61a20987775ae4a14c15dd81.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/e2aba67a61a20987775ae4a14c15dd81.svg#Eurostile Unicase LT W04 Rg")format("svg");
}

/* Global Reset */
* {
    font-family: "Eurostile Unicase LT W04 Rg", sans-serif;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Page Layout */
body {
    background-color: #181818;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* NovaStrike Logo */
.logo {
    width: 140px;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Title */
h2 {
    text-align: center;
    width: 100%;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Form */
form {
    width: 100%;
    max-width: 400px;
    background-color: #181818; /* Matches page background */
    padding: 0px;
}

/* Labels */
label {
    display: block;
	margin-top: 5px;
    margin-bottom: 5px;
    color: white;
    font-size: 0.85rem;
    opacity: 0.5; /* 50% opacity */
}

/* Inputs & Select Boxes */
input, select {
    width: 100%;
    padding: 12px;
    background-color: #242424;
    color: white;
    border: none;
    border-radius: 0; /* Remove rounded corners */
    margin-bottom: 15px;
    font-size: 1rem;
    outline: none; /* Remove default blue border */
}

/* Add V-Shaped Outline Arrow for Gender & Date Fields */
select, input[type="date"] {
    appearance: none; /* Remove default styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20'%3E%3Cpath d='M6 9l6 6 6-6' stroke='white' stroke-width='3' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 30px; /* Space for arrow */
}

/* Fix Date Input Alignment on iPhone */
input[type="date"] {
    width: 100% !important;
    text-align: left !important; /* Force left alignment */
    padding-left: 12px !important; /* Ensure proper spacing */
    font-size: 16px !important; /* Prevent iOS zoom & enforce left alignment */
    min-height: 44px; /* Consistent height */
    line-height: normal;
    display: block;
}

/* Change iPhone Tap Highlight to Accent Color */
input:focus, select:focus {
    outline: 2px solid #A657E7 !important; /* Focus border color */
}

/* Removes default iPhone styling from dropdowns */
select {
    appearance: none;
}

/* Placeholder Styling */
input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Disabled Submit Button (Greyed Out) */
button:disabled {
    background-color: #555 !important;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Enabled Submit Button (Colored) */
button {
    width: 50%; /* Button is 50% smaller */
    background-color: #A657E7;
    color: white;
    border: none;
    border-radius: 0; /* Remove rounded corners */
    padding: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    display: block;
    margin: 40px auto 60px auto; /* Centers the button */
}

button:hover:enabled {
    background-color: #8C42C8;
}


/* Parent container for inputs (allows icon placement) */
.input-container {
    position: relative;
    width: 100%;
}

/* Input fields */
.input-container input {
    width: 100%;
    padding: 12px;
    background-color: #242424;
    color: white;
    border: none;
    border-radius: 0;
    margin-bottom: 15px;
    font-size: 1rem;
    outline: none;
    padding-right: 40px; /* Space for icon */
}

/* Validation icons (✓ or ✗) */
.input-container img {
    position: absolute;
    right: 12px;
    top: 44px;
    transform: translateY(-50%); /* Perfect vertical centering */
    width: 20px;
    height: 20px;
    display: none; /* Initially hidden */
}

/* X icon (Invalid) with 50% opacity */
.input-container img#Icon02 {
    opacity: 0.5;
}

/* Remove iOS autofill yellow background & force white text */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    background-color: #242424 !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    -webkit-box-shadow: 0 0 0px 1000px #242424 inset !important;
    box-shadow: 0 0 0px 1000px #242424 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}
