body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

h2, h3 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
}

h3 {
    color: #4287f5;
    font-size: 1.3em;
    padding-bottom: 10px;
    border-bottom: 2px solid #4287f5;
    margin-top: 30px;
}

.form-section {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.field-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="email"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    margin-bottom: 5px;
    transition: border-color 0.3s ease;
}

input[type="number"] {
    height: 42px;
}

input:focus,
select:focus {
    outline: none;
    border-color: #4287f5;
    box-shadow: 0 0 5px rgba(66, 135, 245, 0.2);
}

.radio-group {
    display: flex;
    gap: 30px;
    margin: 10px 0;
}

.radio-group div {
    display: flex;
    align-items: center;
}

input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

input[type="radio"] + label {
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 0;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px;
    cursor: pointer;
}

input[type="submit"] {
    background-color: #4287f5;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #2e5fb3;
}

/* Help text styling */
.help-text {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* Address field styling */
input[readonly] {
    background-color: #f8f9fa;
    cursor: pointer;
}

input[readonly]:focus {
    background-color: #fff;
    cursor: text;
}

/* Remove readonly styling when user clicks to edit */
input[readonly]:focus {
    background-color: #fff;
}

/* Form validation styles */
input:invalid {
    border-color: #ff6b6b;
}

input:invalid + span::before {
    content: attr(title);
    color: #ff6b6b;
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

/* Success page styles */
.success-message {
    color: #28a745;
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #28a745;
    border-radius: 4px;
    background-color: #d4edda;
}

.error-message {
    color: #dc3545;
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #dc3545;
    border-radius: 4px;
    background-color: #f8d7da;
}

/* Quote details display */
.quote-details {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.quote-details p {
    margin: 15px 0;
    font-size: 18px;
}

.quote-details .amount {
    color: #4287f5;
    font-weight: bold;
    font-size: 1.2em;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        margin: 20px auto;
        padding: 15px;
    }

    .form-section {
        padding: 15px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}
