.thank-you-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thank-you-modal.active {
    display: flex;
    opacity: 1;
}

.thank-you-modal-content {
    background: linear-gradient(135deg, #042878, #0a9bf4);
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    padding: 20px 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.thank-you-modal.active .thank-you-modal-content {
    opacity: 1;
    transform: translateY(0);
}

.thank-you-logo {
    text-align: center;
    margin-bottom: 10px;
}

.logo-thank-you {
    height: 50px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.thank-you-title {
    font-size: 26px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}

.thank-you-description {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 450px;
}

#user-email {
    font-weight: 600;
}

.thank-you-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.thank-you-button {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
}

.thank-you-button.primary {
    background-color: #4285F4;
    color: white;
}

.thank-you-button.primary:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
}

.thank-you-button.secondary {
    background-color: #1f1f1f;
    color: white;
}

.thank-you-button.secondary:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.download-app-section {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.download-description {
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.qr-code {
    width: 120px;
    height: 120px;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Social section updated styles */
.social-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    padding-top: 5px;
    margin-top: 5px;
}

.social-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.social-section a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    font-size: 12px;
    transition: all 0.2s ease;
    position: relative;
    margin: 0 5px;
}

.social-section a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #f2c632;
    transition: width 0.3s ease;
}

.social-section a:hover {
    color: #f2c632;
    transform: translateY(-2px);
}

.social-section a:hover::after {
    width: 100%;
}

.link-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 2px;
}

.social-title {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Refined tooltip style */
.tooltip-copy {
    position: absolute;
    background-color: #000;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    right: 45px; /* Closer to the button */
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    font-weight: normal;
    letter-spacing: 0.3px;
}

/* Smaller arrow on the right of the tooltip */
.tooltip-copy::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -4px; /* Smaller arrow position */
    transform: translateY(-50%);
    border-width: 4px 0 4px 4px; /* Smaller triangle */
    border-style: solid;
    border-color: transparent transparent transparent #042878;
}

.tooltip-copy.visible {
    opacity: 1;
}
/* Melhora na interação do botão de copiar */
.copy-referral-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-referral-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.copy-referral-btn:active {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Estilos adicionais para acessibilidade do input */
.referral-link-input:focus {
    outline: 2px solid #0487dc;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.3);
}

/* Referral Section Styles */
.referral-section {
    background-color: rgb(0 130 214);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 40px rgba(64, 178, 255, 0.3);
    transition: box-shadow 0.3s ease;
    border: #0487dc;
    border-style: solid;
}

.referral-section:hover {
    background-color: rgb(1 130 224);
    box-shadow: 0 5px 20px rgba(64, 178, 255, 0.8);
    border: #0495f5;
    border-style: solid;
}

.referral-title {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    color: #f2c632;
}

.referral-description {
    text-align: center;
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.5;
    padding-left: 20px;
    padding-right: 20px;
}

.referral-link-container {
    display: flex;
    width: 100%;
    max-width: 400px;
    margin-bottom: 15px;
    position: relative;
}

.referral-link-input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 15px;
    padding-right: 45px;
    width: 100%;
}

.copy-referral-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-referral-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.copy-referral-btn i {
    font-size: 16px;
}

.referral-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
    width: 100%;
}

.benefit-item {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    background-color: #003a60;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.benefit-item i {
    color: #f2c632;
    font-size: 12px;
}

.share-title {
    font-size: 28px;
    margin-bottom: 5px;
    text-align: center;
    opacity: 1;
}

.share-options {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.share-button.whatsapp {
    background-color: #00a83f;
    color: white;
}

.share-button.linkedin {
    background-color: #00a8ff;
    color: white;
}

.share-button.email {
    background-color: #f48242;
    color: white;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.share-button i {
    font-size: 16px;
}

/* Shared style with tooltip */
.tooltip {
    position: absolute;
    background-color: #042878;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    right: 0px;
    height: 28px;
    top: 7px;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.tooltip.visible {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .referral-section {
        padding: 20px 15px;
    }
    
    .share-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .share-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {

    .referral-title {
        font-size: 27px;
    }

    .referral-description {
        font-size: 16px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .thank-you-modal-content {
        padding: 25px 25px 15px 15px;
    }
    
    .thank-you-title {
        font-size: 22px;
    }
    
    .thank-you-description {
        font-size: 17px;
    }
    
    .thank-you-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .thank-you-button {
        width: 100%;
    }
    
    .download-app-section {
        padding: 20px 15px;
    }
    
    .qr-code {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .thank-you-modal-content {
        padding: 25px 15px;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* LinkedIn Popup Modal */
.linkedin-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    width: 85%;
    max-width: 400px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.linkedin-popup.active {
    display: block;
    opacity: 1;
}

.linkedin-popup-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.linkedin-popup-header img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.linkedin-popup-title {
    font-size: 16px;
    font-weight: 600;
    color: #0077b5;
    margin: 0;
    margin-left: 5px;
}

.linkedin-popup-content {
    margin-bottom: 20px;
    position: relative;
}

.linkedin-message-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    resize: none;
    height: 80px;
    margin-bottom: 15px;
}

.linkedin-popup-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.linkedin-popup-button {
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.linkedin-popup-button.copy {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.linkedin-popup-button.copy:hover {
    background-color: #e5e5e5;
}

.linkedin-popup-button.share {
    background-color: #0077b5;
    color: white;
    border: none;
    border-radius: 999px;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 24px;
    box-shadow: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.linkedin-popup-button.share:hover {
    background-color: #0077b5;
    color: white;
    background-color: #006399;
}

.linkedin-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1090;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.linkedin-popup-overlay.active {
    display: block;
    opacity: 1;
}

#linkedin-tooltip {
    left: 50%;
    top: 28px;
    background-color: #000000;
    color: #fff;
    padding: 3px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 90px;
}
#linkedin-tooltip.visible {
    opacity: 1;
}