﻿/* --- Reset & Variables --- */
:root {
    --primary-color: #4a90e2; /* Change this to match your brand */
    --primary-hover: #357abd;
    --bg-color: #f4f7f6;
    --text-color: #333;
    --input-bg: #fff;
    --border-color: #ddd;
    --radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* --- Form Container --- */
.form-container {
    background-color: #fff;
    width: 100%;
    max-width: 500px; /* Prevents form from getting too wide on desktop */
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.form-header p {
    font-size: 14px;
    color: #666;
}

/* --- Form Elements --- */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: var(--input-bg);
    font-size: 16px; /* 16px prevents zoom-in on iOS inputs */
    transition: border-color 0.3s ease;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

textarea {
    resize: vertical; /* Allows user to resize height only */
}

/* --- Button --- */
.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--primary-hover);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 480px) {
    .form-container {
        padding: 25px 20px; /* Reduces padding on small screens */
    }
    
    .form-header h2 {
        font-size: 20px;
    }
}