* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container-fluid.site.sbackground {
    padding: 4% 0 0 0;
}

.backgrounds {
    position: relative;
    width: 100%;
    min-height: 40%;
    overflow: hidden;
}

.backgrounds img {
    width: 100%;
    height: auto;
    display: block;
}

.desktop-image {
    display: block!important;
}

.mobile-image {
    display: none!important;
}

.backgrounds h1,
.backgrounds h4 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    text-transform: uppercase;
    color: white;
    width: 100%;
    display: none;
}

.backgrounds h4 {
    top: 35%;
    font-size: 2.5rem;
}

.backgrounds h1 {
    top: 50%;
    font-size: 3.5rem;
    font-weight: bold;
}

.background-form {
    padding: 4% 0;
    min-height: 500px;
    background-image: url('../../img/sugestoes/orcamento/fundo_load_desktop_2026.png');
    background-repeat: no-repeat;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-swal-popup {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
}

.custom-swal-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.custom-swal-button {
    border-radius: 8px;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 92, 169, 0.3);
}

.custom-swal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 92, 169, 0.4);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 3px solid #005CA9;
}

.form-header h2 {
    color: #002147;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

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

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #002147;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label .required {
    color: #d33;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: #005CA9;
    box-shadow: 0 0 0 4px rgba(0, 92, 169, 0.1);
    transform: translateY(-2px);
}

.form-control:hover {
    border-color: #005CA9;
}

.form-control::placeholder {
    color: #999;
    font-size: 15px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.6;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.form-control:focus ~ .input-icon {
    color: #005CA9;
}

.char-counter {
    position: absolute;
    right: 15px;
    bottom: -25px;
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.char-counter.warning {
    color: #f0ad4e;
}

.char-counter.error {
    color: #d33;
}

.recaptcha-disclaimer {
    margin: 20px 0 0;
    padding: 12px 16px;
    font-size: 12px;
    line-height: 1.45;
    color: #6c757d;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.recaptcha-disclaimer a {
    color: #06516b;
    text-decoration: underline;
}

.button-container {
    text-align: center;
    margin-top: 30px;
}

.btu {
    min-width: 220px;
    height: 55px;
    background: linear-gradient(135deg, #002147 0%, #005CA9 100%);
    color: white;
    text-transform: uppercase;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 92, 169, 0.3);
    position: relative;
    overflow: hidden;
}

.btu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btu:hover::before {
    left: 100%;
}

.btu:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 92, 169, 0.4);
}

.btu:active {
    transform: translateY(-1px);
}

.btu:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-control.is-invalid {
    border-color: #d33;
    animation: shake 0.3s ease;
}

.form-control.is-valid {
    border-color: #28a745;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.invalid-feedback {
    display: block;
    color: #d33;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

.btu.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btu.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Estilos para Página de Encerramento === */
.closed-wrapper {
    text-align: center;
    padding: 50px 40px !important;
    max-width: 1000px !important;
}

.closed-icon {
    margin: 0 auto 30px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #002147 0%, #005CA9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 92, 169, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.closed-icon svg {
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 92, 169, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(0, 92, 169, 0.4);
    }
}

.closed-content {
    max-width: 800px;
    margin: 0 auto;
}

.closed-title {
    color: #002147;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.closed-subtitle {
    color: #005CA9;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
}

.closed-message {
    background: #f8f9fa;
    border-left: 4px solid #005CA9;
    padding: 25px;
    margin: 30px 0;
    border-radius: 10px;
    text-align: left;
}

.closed-message p {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.closed-message p:last-child {
    margin-bottom: 0;
}

.closed-info-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 35px 0;
}

.info-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.info-item:hover {
    border-color: #005CA9;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 92, 169, 0.15);
}

.info-item svg {
    color: #005CA9;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-item h4 {
    color: #002147;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.closed-next-steps {
    background: #fff;
    border: 2px solid #005CA9;
    border-radius: 12px;
    padding: 30px;
    margin: 35px 0;
    text-align: left;
}

.closed-next-steps h3 {
    color: #002147;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.closed-next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.closed-next-steps li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.closed-next-steps li:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.closed-next-steps li:last-child {
    margin-bottom: 0;
}

.step-number {
    background: linear-gradient(135deg, #002147 0%, #005CA9 100%);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.closed-next-steps li span:not(.step-number) {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.closed-contact {
    background: linear-gradient(135deg, #002147 0%, #005CA9 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-top: 35px;
}

.closed-contact p {
    margin: 0 0 8px 0;
    font-size: 15px;
    line-height: 1.6;
}

.closed-contact p:last-child {
    margin-bottom: 0;
}

.closed-contact strong {
    font-size: 17px;
}


@media screen and (max-width: 1024px) {
    .form-wrapper {
        padding: 35px 30px;
    }
}

@media screen and (max-width: 768px) {
    .desktop-image {
        display: none !important;
    }

    .mobile-image {
        display: block !important;
    }

    .background-form {
        background-image:url('../../img/sugestoes/orcamento/fundo_load_desktop_2026.png');
        padding: 10% 0;
        min-height: auto;
    }

    .backgrounds h4 {
        font-size: 1.8rem;
        top: 30%;
    }

    .backgrounds h1 {
        font-size: 2.2rem;
        top: 45%;
    }

    .form-wrapper {
        margin: 0 15px;
        padding: 30px 20px;
        border-radius: 15px;
    }

    .form-header h2 {
        font-size: 22px;
    }

    .form-header p {
        font-size: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .btu {
        width: 100%;
        min-width: auto;
    }

    .closed-wrapper {
        padding: 40px 25px !important;
    }

    .closed-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 25px;
    }

    .closed-icon svg {
        width: 60px;
        height: 60px;
    }

    .closed-title {
        font-size: 24px;
    }

    .closed-subtitle {
        font-size: 18px;
    }

    .closed-info-box {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-item {
        padding: 20px;
    }

    .closed-next-steps {
        padding: 25px 20px;
    }

    .closed-next-steps h3 {
        font-size: 18px;
    }
}

@media screen and (max-width: 600px) {
    .background-form {
        background-image:url('../../img/sugestoes/orcamento/fundo_load_mobile_2026.png');
    }

    .backgrounds h4 {
        font-size: 1.5rem;
    }

    .backgrounds h1 {
        font-size: 1.8rem;
    }

    .form-wrapper {
        padding: 25px 18px;
    }

    .form-header {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    .form-header h2 {
        font-size: 20px;
    }

    .form-control {
        padding: 12px 15px;
        font-size: 15px;
    }

    .btu {
        height: 50px;
        font-size: 15px;
    }

    .closed-wrapper {
        padding: 30px 20px !important;
    }

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

    .closed-subtitle {
        font-size: 16px;
    }

    .closed-message {
        padding: 20px;
    }

    .closed-message p {
        font-size: 15px;
    }

    .info-item {
        padding: 18px;
    }

    .info-item h4 {
        font-size: 15px;
    }

    .closed-next-steps {
        padding: 20px 15px;
    }

    .closed-next-steps h3 {
        font-size: 17px;
    }

    .closed-next-steps li {
        padding: 12px;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .closed-contact {
        padding: 20px;
    }
}

@media screen and (max-width: 425px) {
    .background-form {
        background-image:url('../../img/sugestoes/orcamento/fundo_load_mobile_2026.png');
    }
    
    .form-wrapper {
        padding: 20px 15px;
    }

    .closed-wrapper {
        padding: 25px 15px !important;
    }

    .closed-icon {
        width: 70px;
        height: 70px;
    }

    .closed-icon svg {
        width: 50px;
        height: 50px;
    }

    .closed-title {
        font-size: 18px;
    }

    .closed-subtitle {
        font-size: 15px;
    }
}

@media screen and (max-width: 375px) {
    .background-form {
        background-image:url('../../img/sugestoes/orcamento/fundo_load_mobile_2026.png');
    }

    .form-header h2 {
        font-size: 18px;
    }
}

@media screen and (max-width: 320px) {
    .background-form {
        background-image:url('../../img/sugestoes/orcamento/fundo_load_mobile_2026.png');
    }

    .form-wrapper {
        padding: 18px 12px;
    }
}