/* Multi-step Project Form Styles */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-modal.active {
    display: flex;
}

.project-modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2.5rem;
    width: 95%;
    max-width: 850px;
    padding: 3vh 3rem;
    position: relative;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    backdrop-filter: blur(25px);
    overflow-y: auto;
    /* Fallback de rolagem se necessário */
    scrollbar-width: none;
    /* Firefox */
}

.project-modal-content::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Adicionando um detalhe de iluminação no topo do modal */
.project-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.3), transparent);
}

.close-project-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.close-project-modal:hover {
    color: white;
    transform: rotate(90deg);
}

/* Progress Bar */
.form-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 3vh;
    position: relative;
    overflow: hidden;
}

@media (max-height: 700px) {
    .form-progress {
        margin-bottom: 1.5vh;
    }
}

.form-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #00ffcc);
    border-radius: 10px;
    width: 16.66%;
    /* 1/6 steps */
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

/* Steps Transition */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: clamp(1.2rem, 4vh, 2rem);
    /* Escala ajustada para melhor adaptação */
    font-weight: 900;
    letter-spacing: -0.06em;
    margin-bottom: 0.5vh;
    line-height: 1.1;
    white-space: nowrap;
    /* Forçando linha única conforme pedido */
}

.step-title br {
    display: block;
}

.step-desc {
    color: var(--text-muted);
    font-size: clamp(0.7rem, 2vh, 0.9rem);
    margin-bottom: 1.5vh;
    max-width: 80%;
}

/* Interactive Options */
.options-grid {
    display: grid;
    grid-template-cols: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.5vh;
}

.option-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 1vh 1rem;
    /* Compactação extra */
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    position: relative;
}

.option-card:hover {
    border-color: rgba(0, 217, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.option-card.selected {
    border-color: var(--primary-color);
    background: rgba(0, 217, 255, 0.08);
    box-shadow: 0 0 35px rgba(0, 217, 255, 0.2);
}

.option-card.selected::after {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 900;
}

.option-icon {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.option-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
}

.option-label {
    font-weight: 800;
    font-size: 0.8rem;
    display: block;
    color: white;
}

.option-info {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.2;
}

/* Step Buttons */
.step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    /* Força os botões para o final do modal */
    padding-top: 1.5vh;
}

.btn-prev {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-prev:hover {
    color: white;
}

/* Form Inputs */
.project-input-group {
    margin-bottom: 1vh;
}

.project-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 1.5vh 2rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.4s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Responsividade do Grid de Contato */
@media (max-width: 600px) {
    .contact-grid {
        grid-template-cols: 1fr !important;
        gap: 0.5rem !important;
    }

    .step-title {
        white-space: normal;
        /* Permite quebra em mobile muito pequeno se necessário, mas tenta manter */
        font-size: 1.5rem;
    }

    .project-modal-content {
        padding: 2vh 1.5rem;
    }
}

.project-textarea {
    min-height: 60px;
    max-height: 120px;
    resize: none;
}