#gegov-contact{
    max-width:1200px;
    margin:60px auto;
    padding:20px;
}

.gegov-contact-title{
    text-align:center;
    margin-bottom:40px;
}

.gegov-contact-wrapper{
    display:flex;
    gap:40px;
    flex-wrap:wrap;
}

.gegov-contact-form,
.gegov-contact-info{
    flex:1;
    min-width:320px;
}

.gegov-contact-form input,
.gegov-contact-form textarea{
    width:100%;
    padding:14px;
    margin-bottom:15px;
    border:1px solid #333;
    border-radius:10px;
    background:#111;
    color:#fff;
}

.gegov-contact-form button{
    width:100%;
    padding:14px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-weight:700;
}

.gegov-contact-info{
    padding:25px;
    border-radius:14px;
    background:rgba(255,255,255,.05);
}

.gegov-contact-info ul{
    list-style:none;
    padding:0;
    margin-top:20px;
}

.gegov-contact-info li{
    margin-bottom:12px;
}

/* ==============================
   SUCCESS MESSAGE - GEGOV
============================== */

.success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: gegovFadeIn 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

/* ICONA CHECK */
.success::before {
    content: "✓";
    font-size: 18px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* BARRA LUMINOSA ANIMATA */
.success::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );
    transform: skewX(-20deg);
    animation: shine 2.5s infinite;
}

/* ANIMAZIONE ENTRATA */
@keyframes gegovFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ANIMAZIONE LUCE */
@keyframes shine {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}

/* ==============================
   ERROR MESSAGE - GEGOV
============================== */

.error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: gegovFadeIn 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

/* ICONA WARNING */
.error::before {
    content: "!";
    font-size: 16px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* BARRA LUCE (coerente con success) */
.error::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );
    transform: skewX(-20deg);
    animation: shine 2.5s infinite;
}

/* ANIMAZIONE ENTRATA */
@keyframes gegovFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LUCE ANIMATA (condivisa con success) */
@keyframes shine {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}

.gegov-contact-topbar{
    display:flex;
    justify-content:flex-end;
    margin-bottom:20px;
}

.gegov-mail-icon{

    position:relative;

    width:72px;
    height:72px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color:#fff;

    text-decoration:none;

    font-size:36px;

    box-shadow:
        0 10px 25px rgba(37,99,235,.25);

    transition:.25s ease;
}

.gegov-mail-icon:hover{

    transform:translateY(-3px);

    box-shadow:
        0 15px 35px rgba(37,99,235,.35);
}

.gegov-mail-badge{

    position:absolute;

    top:-4px;
    right:-4px;

    min-width:26px;
    height:26px;

    padding:0 6px;

    border-radius:50px;

    background:#ef4444;

    color:#fff;

    font-size:12px;

    font-weight:700;

    display:flex;
    align-items:center;
    justify-content:center;

    border:2px solid #fff;
}

.has-unread{

    animation: gegovPulse 2s infinite;

}

/* =====================================
   INBOX
===================================== */

#gegov-inbox{
    max-width:900px;
    margin:40px auto;
}

.gegov-inbox-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.gegov-inbox-header h2{
    margin:0;
}

/* =====================================
   CARD MESSAGGIO
===================================== */

.gegov-message-card{

    background:#fff;
	
	border-left:4px solid #22c55e;

    border:1px solid rgba(0,0,0,.08);

    border-radius:14px;

    padding:20px;

    margin-bottom:20px;

    box-shadow:
        0 4px 12px rgba(0,0,0,.05);

    transition:.25s ease;
}

.gegov-message-card:hover{

    transform:translateY(-2px);

    box-shadow:
        0 10px 24px rgba(0,0,0,.08);
}

/* =====================================
   HEADER
===================================== */

.gegov-message-head{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    padding-bottom:12px;

    margin-bottom:15px;

    border-bottom:1px solid rgba(0,0,0,.08);
}

.gegov-message-head h3{

    margin:0;

    font-size:18px;

    font-weight:600;
}

.gegov-message-head small{

    color:#777;

    white-space:nowrap;
}

.gegov-new-badge{
    display:inline-block;
    margin-left:8px;
    padding:2px 8px;
    font-size:11px;
    font-weight:700;
    border-radius:999px;
    background:#22c55e;
    color:#fff;
}

/* =====================================
   TESTO RISPOSTA
===================================== */

.gegov-message-body{

    line-height:1.8;

    color:#444;

    padding:10px 0 20px;
}

/* =====================================
   FOOTER AZIONI
===================================== */

.gegov-message-actions{

    display:flex;

    justify-content:flex-end;

    border-top:1px solid rgba(0,0,0,.08);

    padding-top:15px;
}

.gegov-delete-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:8px 14px;

    font-size:13px;

    font-weight:500;

    text-decoration:none;

    border-radius:8px;

    background:#f5f5f5;

    color:#444;

    border:1px solid rgba(0,0,0,.08);

    transition:.2s ease;
}

.gegov-delete-btn:hover{

    background:#dc2626;

    color:#fff;

    border-color:#dc2626;
}

.gegov-pagination{

    display:flex;

    justify-content:center;

    margin:40px 0;
}

.gegov-pagination .page-numbers{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-width:42px;

    height:42px;

    margin:0 4px;

    border-radius:10px;

    text-decoration:none;

    background:#fff;

    border:1px solid rgba(0,0,0,.08);

    color:#333;

    transition:.2s ease;
}

.gegov-pagination .page-numbers:hover{

    background:#2563eb;

    color:#fff;
}

.gegov-pagination .current{

    background:#2563eb;

    color:#fff;

    border-color:#2563eb;
}

.gegov-count{

    display:inline-block;

    margin-left:10px;

    padding:4px 10px;

    border-radius:20px;

    background:#2563eb;

    color:#fff;

    font-size:12px;

    font-weight:600;
}

@media(max-width:768px){

    .gegov-contact-wrapper{
        flex-direction:column;
    }

}