/* ZEV Pledge Form Styles v1.0 */

:root {
    --primary-color: #0055a4;
    --error-color: #dc3545;
    --border-color: #dee2e6;
    --background-color: #fff;
    --text-color: #333;
}

.form-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.form-title {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.3;
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.phone-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 200px;
}

.phone-part {
    padding: 0.625rem 0.25rem !important;
    text-align: center !important;
    height: 40px;
}

.form-control.phone-part {
    width: auto !important;
    min-width: 0 !important;
}

.required {
    color: var(--error-color);
    margin-left: 0.25rem;
}

select.form-control {
    height: 40px;
    padding: 0 0.625rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.625rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: border-color 0.2s ease-in-out;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,85,164,0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.radio-group {
    margin-top: 0.5rem !important;
    padding: 1rem !important;
    border-radius: 4px;
}

.radio-group label {
    font-weight: normal;
    margin-left: 0.3rem;
}

.radio-group tr {
    display: block;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.radio-group td {
    display: block;
}

.radio-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.radio-item:last-child {
    margin-bottom: 0;
}

.radio-item input[type="radio"] {
    margin-right: 0.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background-color: var(--primary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    min-width: 200px;
    transition: background-color 0.2s ease-in-out;
}

.btn-primary:hover {
    background-color: #004483;
}

.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

@media (max-width: 480px) {
    .form-container {
        margin: 0.5rem;
        padding: 1rem;
    }
}

.zevImage2 {
    float: right;
    max-width: 228px;
    padding-left: 20px;
    padding-bottom: 20px;
}

.terms-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.terms-content {
    margin-bottom: 1rem;
}

.terms-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.terms-text {
    color: #495057;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.terms-acceptance {
    background-color: #ffffff;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
}

.custom-checkbox {
    margin-right: 10px;
}

.terms-label {
    color: #212529;
}

.checkmark-list {
    list-style-type: none;
    padding: 0;
}

.checkmark-list li {
    position: relative;
    padding-left: 25px;
}

.checkmark-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 20px;
    color: green;
}

.smaller {
    font-size: 12px;
}

.or-separator {
    margin: 0 0 0.5rem 0;
   padding-left: 1.5rem;
    color: var(--text-color);
}

.future-commitment-wrapper {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: flex-start;
}

.future-commitment-checkbox {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    flex-shrink:0;
}

.future-commitment-label {
    font-weight: normal;
    color: var(--text-color);
}
