#taktow-job-form {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);


    .form-group {
        margin-bottom: 20px;
    }

    label {
        display: block;
        margin-bottom: 5px;
        font-weight: 600;
        color: #333;
    }

    input[type="text"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        transition: border-color 0.3s;
        color: #333;
    }

    input[type="text"]:focus,
    input[type="tel"]:focus,
    input[type="number"]:focus,
    select:focus,
    textarea:focus {
        border-color: #4CAF50;
        outline: none;
    }

    .radio-group {
        display: flex;
        gap: 20px;
        margin-bottom: 15px;
    }

    .radio-group label {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-weight: normal;
    }

    .radio-group input[type="radio"] {
        margin: 0;
        max-width: 16px;
    }

    .radio-group input[type="radio"]:focus {
        box-shadow: none;
    }


    .field-info {
        font-size: 12px;
        color: #666;
        font-weight: normal;
        margin-left: 5px;
    }

    .taktow-submit {
        background-color: #4CAF50;
        color: white;
        padding: 12px 24px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        width: 100%;
        transition: background-color 0.3s;
    }

    .taktow-submit:hover {
        background-color: #45a049;
    }

    .taktow-submit:disabled {
        background-color: #cccccc;
        cursor: not-allowed;
    }

    .address-autocomplete {
        position: relative;
    }

    .address-suggestions {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #ddd;
        border-radius: 4px;
        max-height: 200px;
        overflow-y: auto;
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .address-suggestions.active {
        display: block;
    }

    .address-suggestion-item {
        padding: 8px 12px;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .address-suggestion-item:hover {
        background-color: #f5f5f5;
    }

    .address-suggestion-item .main-text {
        font-weight: 500;
        color: #333;
    }

    .address-suggestion-item .secondary-text {
        font-size: 12px;
        color: #666;
        margin-top: 2px;
    }

    .input-with-button {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .input-with-button input {
        flex: 1;
    }

    .get-location-btn {
        background-color: #4CAF50;
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.3s;
    }

    .get-location-btn:hover {
        background-color: #45a049;
    }

    .get-location-btn:disabled {
        background-color: #cccccc;
        cursor: not-allowed;
    }

    .taktow-form {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(255, 69, 0, 0.1);
    }

    .form-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-bottom: 20px;
    }

    .form-row.full-width {
        grid-template-columns: 1fr;
    }

    .dropoff-fields {
        display: none;
    }

    .dropoff-fields.visible {
        display: block;
    }

    .form-group {
        margin-bottom: 0;
        position: relative;
    }

    .form-group label {
        display: block;
        margin-bottom: 5px;
        color: #333;
        font-weight: 500;
        font-size: 14px;
    }

    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        font-size: 14px;
        color: #333;
        background-color: #ffffff;
        transition: all 0.2s ease;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: rgb(65 165 221);
        box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.1);
    }

    #registration_field {
        margin-bottom: 15px;
    }

    .radio-group {
        display: flex;
        gap: 15px;
        margin: 5px 0;
    }

    .radio-group label {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-weight: normal;
        cursor: pointer;
    }

    .radio-group input[type="radio"] {
        margin: 0;
        width: 16px;
        height: 16px;
    }

    .input-with-button {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .input-with-button input {
        flex: 1;
    }

    .get-location-btn {
        background-color: rgb(233 53 116);
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 13px;
        transition: all 0.2s ease;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
    }

    .get-location-btn:hover {
        background-color: rgb(65 165 221);
        transform: translateY(-1px);
    }

    .get-location-btn:disabled {
        background-color: #d6eeff;
        cursor: not-allowed;
        opacity: 0.7;
    }

    .get-location-btn:disabled i {
        transform: scale(0.9);
    }

    .field-info {
        color: #7f8c8d;
        font-size: 12px;
        font-style: italic;
        margin-left: 5px;
    }

    .form-group textarea {
        resize: none;
        min-height: 60px;
    }

    .form-group select {
        height: 38px;
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 8px center;
        background-size: 16px;
        padding-right: 32px;
    }

    .address-autocomplete {
        position: relative;
    }

    .address-suggestions {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #FFE0D6;
        border-radius: 4px;
        max-height: 200px;
        overflow-y: auto;
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(255, 69, 0, 0.1);
    }

    .address-suggestions.active {
        display: block;
    }

    .address-suggestion-item {
        padding: 8px 12px;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .address-suggestion-item:hover {
        background-color: #FFF8F5;
    }

    .address-suggestion-item .main-text {
        font-weight: 500;
        color: #333;
    }

    .address-suggestion-item .secondary-text {
        font-size: 12px;
        color: #7f8c8d;
        margin-top: 2px;
    }

    .taktow-submit {
        background-color: rgb(65 165 221);
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 15px;
        width: 100%;
        transition: all 0.2s ease;
        margin-top: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-weight: 500;
    }

    .taktow-submit:hover {
        background-color: rgb(50 140 189);
        transform: translateY(-1px);
    }

    .taktow-submit:disabled {
        background-color: #d6eeff;
        color: rgb(65 165 221);
        cursor: not-allowed;
        transform: none;
    }

    #car_details_fields {
        display: none;
        padding: 15px;
        background: rgba(65, 165, 221, 0.1);
        border-radius: 4px;
        margin-top: 10px;
        margin-bottom: 15px;
        border: 1px solid #d6eeff;
    }

    #car_details_fields.active {
        display: block;
    }

    @media (max-width: 768px) {
        .taktow-form {
            margin: 10px;
            padding: 15px;
        }

        .form-row {
            display: flex;
            gap: 15px;
        }

        .form-group {
            width: 100%;
        }

        .radio-group {
            flex-direction: column;
            gap: 8px;
        }

        .input-with-button {
            flex-direction: row;
        }

        .get-location-btn {
            width: 38px;
        }

        .form-group textarea {
            min-height: 60px;
        }

        .form-group.full-width .form-row {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
    }

    /* Manter apenas estes estilos para validação via JavaScript */
    input:invalid,
    select:invalid,
    textarea:invalid {
        border-color: #e0e0e0;
        box-shadow: none;
    }

    input.error,
    select.error,
    textarea.error {
        border-color: #ff0000;
        box-shadow: 0 0 0 1px #ff0000;
    }
}



.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.loading-overlay.show {
    opacity: 1;
}

.wrapper {
    display: grid;
    height: 100%;
    align-content: center;
    justify-content: center;
}

.loading-container {
    background-color: #1f2937;
    border-radius: 16px;
    padding: 32px;
    max-width: 448px;
    margin: 0 16px;
    text-align: center;
    border: 1px solid rgba(255, 69, 0, 0.2);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Loading Spinner */
.loading-spinner-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.loading-spinner {
    position: relative;
    width: 64px;
    height: 64px;
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 64px;
    height: 64px;
    border: 4px solid #4b5563;
    border-radius: 50%;
}

.spinner-ring-active {
    position: absolute;
    top: 0;
    left: 0;
    width: 64px;
    height: 64px;
    border: 4px solid rgb(65 165 221);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Loading Title */
.loading-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading-title i {
    font-size: 20px;
    color: rgb(65 165 221);
}

/* Loading Subtitle */
.loading-subtitle {
    color: #d1d5db;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Loading Steps */
.loading-steps {
    font-size: 14px;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;

    p {
        color: #9ca3af;
    }
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s ease-in-out infinite;
}

.loading-step-delay-1 {
    animation-delay: 0.2s;
}

.loading-step-delay-2 {
    animation-delay: 0.4s;
}

.loading-step i {
    font-size: 12px;
    color: rgb(65 165 221);
    width: 16px;
    text-align: center;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Progress Bar */
.loading-progress {
    margin-top: 24px;
}

.progress-bar {
    width: 100%;
    background-color: #374151;
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    background: linear-gradient(to right, rgb(65 165 221), #FF5722);
    height: 8px;
    border-radius: 9999px;
    width: 65%;
    animation: progress-pulse 2s ease-in-out infinite;
}

@keyframes progress-pulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

.progress-text {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* Loading Dots Animation */
.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .loading-container {
        margin: 0 16px;
        padding: 24px;
    }

    .loading-title {
        font-size: 20px;
    }

    .loading-spinner {
        width: 48px;
        height: 48px;
    }

    .spinner-ring,
    .spinner-ring-active {
        width: 48px;
        height: 48px;
        border-width: 3px;
    }
}

/* Prevent mobile browsers zooming on input focus */
@media (max-width: 1024px) {

    #taktow-job-form input[type="text"],
    #taktow-job-form input[type="tel"],
    #taktow-job-form input[type="number"],
    #taktow-job-form select,
    #taktow-job-form textarea {
        font-size: 16px !important;
    }
}

@supports (-webkit-touch-callout: none) {

    #taktow-job-form input[type="text"],
    #taktow-job-form input[type="tel"],
    #taktow-job-form input[type="number"],
    #taktow-job-form select,
    #taktow-job-form textarea {
        font-size: 16px !important;
    }
}

#taktow-job-form input::placeholder,
#taktow-job-form textarea::placeholder {
    font-size: 16px;
}

#taktow-job-form input::-webkit-input-placeholder,
#taktow-job-form textarea::-webkit-input-placeholder {
    font-size: 16px;
}