/* Service Request Form Styles */

.active-request {
    background: #DC143C !important;
    color: white !important;
    padding: 5px 15px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
}

.grax_tm_hero_title {
    padding: 100px 0 50px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.grax_tm_hero_title h3 {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.grax_tm_hero_title h3 span {
    color: #DC143C;
}

.grax_tm_hero_title p {
    font-size: 18px;
    color: #666;
}

/* Progress Bar */
.progress_bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 40px 0 60px;
    counter-reset: step;
}

.progress_bar::before {
    content: '';
    background: #e0e0e0;
    position: absolute;
    top: 20px;
    left: 0;
    height: 3px;
    width: 100%;
    z-index: 0;
}

.progress {
    background: #DC143C;
    position: absolute;
    top: 20px;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 1;
    transition: width 0.5s ease;
}

.progress_step {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 3px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    font-weight: 600;
    color: #999;
    transition: all 0.3s ease;
}

.progress_step.active {
    background: #DC143C;
    border-color: #DC143C;
    color: white;
}

.progress_step.completed {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.progress_step::after {
    content: attr(data-title);
    position: absolute;
    top: 50px;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    transform: translateX(-50%);
    left: 50%;
}

/* Form Sections */
.service_request_form {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    margin-bottom: 60px;
}

.form_section {
    display: none;
    animation: slideIn 0.5s ease;
}

.form_section.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form_section h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #DC143C;
}

.form_section h4 {
    font-size: 20px;
    color: #333;
    margin: 20px 0 15px;
}

/* Form Layout */
.form_row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form_col {
    flex: 1;
}

.form_col.full {
    flex: 1 1 100%;
}

.form_col label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: #DC143C;
}

.form_col input[type="text"],
.form_col input[type="email"],
.form_col input[type="tel"],
.form_col input[type="date"],
.form_col select,
.form_col textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.form_col input:focus,
.form_col select:focus,
.form_col textarea:focus {
    border-color: #DC143C;
    outline: none;
    box-shadow: 0 0 0 3px rgba(220,20,60,0.1);
}

.form_col textarea {
    resize: vertical;
    min-height: 80px;
}

.form_col small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Checkbox and Radio Styles */
.checkbox_group,
.radio_group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.checkbox_label,
.radio_label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    min-width: 150px;
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.checkbox_label input,
.radio_label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.radio_label .checkmark {
    border-radius: 50%;
}

.checkbox_label:hover input ~ .checkmark,
.radio_label:hover input ~ .checkmark {
    border-color: #DC143C;
}

.checkbox_label input:checked ~ .checkmark,
.radio_label input:checked ~ .checkmark {
    background-color: #DC143C;
    border-color: #DC143C;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox_label input:checked ~ .checkmark:after,
.radio_label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox_label .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.radio_label .checkmark:after {
    left: 6px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* File Upload */
.file_upload {
    margin-bottom: 20px;
}

.file_upload label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.file_input_wrapper {
    position: relative;
}

.file_input_wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 45px;
    cursor: pointer;
}

.file_label {
    display: block;
    padding: 12px;
    background: #f5f5f5;
    border: 2px dashed #ddd;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file_label:hover {
    border-color: #DC143C;
    background: #fff;
}

.file_text {
    color: #666;
}

.file_input_wrapper input[type="file"]:focus + .file_label {
    border-color: #DC143C;
    box-shadow: 0 0 0 3px rgba(220,20,60,0.1);
}

/* Consent Group */
.consent_group {
    margin: 20px 0;
}

.consent_group .checkbox_label {
    min-width: 100%;
    margin-bottom: 15px;
    line-height: 1.4;
}

.consent_group a {
    color: #DC143C;
    text-decoration: underline;
}

/* Navigation Buttons */
.form_navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.btn_prev,
.btn_next,
.btn_submit {
    padding: 12px 35px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn_prev {
    background: #f5f5f5;
    color: #333;
}

.btn_prev:hover {
    background: #e0e0e0;
}

.btn_next,
.btn_submit {
    background: #DC143C;
    color: white;
}

.btn_next:hover,
.btn_submit:hover {
    background: #B91C3C;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220,20,60,0.3);
}

.btn_submit {
    background: #4CAF50;
}

.btn_submit:hover {
    background: #45a049;
}

/* Submit Message */
.submit_message {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid #2196F3;
}

.submit_message p {
    margin: 10px 0;
    color: #333;
    line-height: 1.6;
}

.submit_message p:first-child {
    margin-top: 0;
}

.submit_message p:last-child {
    margin-bottom: 0;
}

/* Error and Success Messages */
.error_message {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

.success_message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

.field_error {
    color: #DC143C;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

input.error,
select.error,
textarea.error {
    border-color: #DC143C !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form_row {
        flex-direction: column;
    }

    .progress_step::after {
        font-size: 10px;
    }

    .service_request_form {
        padding: 20px;
    }

    .form_section h3 {
        font-size: 24px;
    }

    .checkbox_group,
    .radio_group {
        flex-direction: column;
    }

    .checkbox_label,
    .radio_label {
        min-width: 100%;
    }

    .form_navigation {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .btn_prev,
    .btn_next,
    .btn_submit {
        width: 100%;
    }
}