/* ===== Contact - contact.css ===== */

/* Contenitore principale */
.contact-section {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 12rem 2rem 6rem;
    background: radial-gradient(circle at top, rgba(130,70,255,0.05), transparent 70%),
    radial-gradient(circle at bottom, rgba(50,0,100,0.05), transparent 70%);
    gap: 2rem;
    flex-wrap: wrap;
}

/* Contenitore flex per form + discord */
.contact-flex {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1080px;
}

/* Card del form */
.contact-container {
    background: rgba(10,0,25,0.25);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 4rem 3rem;
    flex: 1 1 400px;
    min-width: 300px;
    box-shadow: 0 12px 40px rgba(123,92,255,0.12);
    text-align: center;
    color: #fff;
    position: relative;
}

/* Titolo e descrizione form */
.contact-container h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 6px 30px rgba(123,92,255,0.15);
}

.contact-container p {
    font-size: 1rem;
    color: #e6e0ff;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

/* Label */
.contact-form label {
    font-weight: 500;
    color: #ddd;
    margin-bottom: 0.5rem;
    display: block;
}

/* Input e textarea */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(159,129,255,0.18);
    background: rgba(255,255,255,0.05);
    color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: none;
    height: 180px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #7b5cff;
    box-shadow: 0 0 12px rgba(123,92,255,0.35);
    background: rgba(255,255,255,0.08);
}

/* Pulsante invio */
.contact-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(123,92,255,0.85), rgba(59,130,246,0.65));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.36s ease;
    box-shadow: 0 8px 26px rgba(123,92,255,0.12);
}

.contact-form button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(123,92,255,0.22);
}

/* Animazione reveal del form */
.contact-container,
.contact-form input,
.contact-form textarea,
.contact-form button {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

.contact-container { animation-delay: 0.1s; }
.contact-form input:nth-child(1) { animation-delay: 0.2s; }
.contact-form input:nth-child(2) { animation-delay: 0.3s; }
.contact-form textarea { animation-delay: 0.4s; }
.contact-form button { animation-delay: 0.5s; }

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

/* === Sezione Discord === */
.discord-support {
    background: linear-gradient(135deg, rgba(72,49,212,0.15), rgba(123,92,255,0.15));
    border: 1px solid rgba(123,92,255,0.25);
    border-radius: 14px;
    padding: 2rem 2.5rem;
    flex: 1 1 300px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 15px;
}

.discord-support::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -25%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(123,92,255,0.12), transparent 70%);
    transform: rotate(25deg);
    transition: all 0.4s ease;
    pointer-events: none;
}

.discord-support:hover::before {
    top: -20%;
    left: -15%;
    transform: rotate(0deg) scale(1.05);
}

.discord-support h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.discord-support p {
    font-size: 1rem;
    color: #e6e0ff;
    margin-bottom: 1.5rem;
}

.discord-support button {
    background: linear-gradient(135deg, rgba(123,92,255,0.85), rgba(59,130,246,0.65));
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.discord-support button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(123,92,255,0.15);
}

.discord-support a {
    color: #7b5cff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.discord-support a i {
    font-size: 1.2rem;
}

/* Hover effetti */
.discord-support:hover a {
    text-decoration: underline;
    color: #5a3dbb;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-flex {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .contact-section {
        padding: 8rem 1.5rem 4rem;
    }

    .contact-container, .discord-support {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .discord-support {
        margin-top: 2rem;
    }

    .contact-form textarea {
        height: 160px;
    }
}

/* Pulsante disabilitato */
.contact-form button:disabled {
    background: rgba(123,92,255,0.4); /* Colore più chiaro e opaco */
    cursor: not-allowed; /* Mostra che non è cliccabile */
    box-shadow: 0 6px 20px rgba(123,92,255,0.08);
    transform: none; /* Disattiva animazioni hover */
    opacity: 0.6;
}

/* Rimuove l'effetto hover per i pulsanti disabilitati */
.contact-form button:disabled:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(123,92,255,0.08);
}

/* Pulsante disabilitato */
button:disabled {
    cursor: not-allowed;
    background: #ccc;
    box-shadow: none;
}
