@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.form-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 800px;
    width: 100%;
}

.form-header {
    background: linear-gradient(90deg, #4a90e2, #50e3c2);
    color: white;
    padding: 30px;
    text-align: center;
}

.form-header h1 {
    margin: 10px 0;
    font-size: 2em;
    font-weight: 700;
}

.form-header h2 {
    margin: 0 0 5px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

#header-logo {
    height: 50px;
    margin-right: 15px;
}

.form-header p {
    margin: 0;
    font-size: 1.1em;
}

form {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

label i {
    margin-right: 8px;
    color: #4a90e2;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

/* Email validation styles */
.email-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
    min-height: 20px;
}

input.invalid {
    border-color: #dc3545;
    background-color: #fdf2f2;
}

input.valid {
    border-color: #28a745;
    background-color: #f8fdf8;
}

.validation-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

.validation-icon.valid {
    color: #28a745;
}

.validation-icon.invalid {
    color: #dc3545;
}

.form-group {
    position: relative;
}

textarea {
    resize: vertical;
}

.form-group > label {
    display: flex;
    align-items: center;
}

#map-label {
    justify-content: space-between;
}

#map-container {
    position: relative;
    height: 250px;
    border-radius: 5px;
    overflow: hidden;
}

#map {
    height: 100%;
    width: 100%;
}

.static-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #4a90e2;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    z-index: 10;
    pointer-events: none;
}

#get-location-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

#get-location-btn:hover {
    background-color: #218838;
}

.lat-long-inputs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    color: #4a90e2;
}

.file-upload-area {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    background-color: #f9f9f9;
}

.file-upload-area:hover {
    border-color: #4a90e2;
    background-color: #f1f6fd;
}

.file-upload-area p {
    margin: 5px 0 0;
    color: #666;
}

.file-upload-area i {
    font-size: 2.5em;
    color: #4a90e2;
}

input[type="file"] {
    display: none;
}

.submit-btn {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:hover:not(:disabled) {
    background-color: #357ABD;
}

.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.submit-btn i {
    margin-right: 10px;
}

.custom-marker {
    background-color: #4a90e2;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    cursor: pointer;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
} 