/* Notification Flyout Styles */
.notification-flyout {
    position: fixed;
    top: 20px;
    right: -400px;
    max-width: 380px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 11000;
    transition: right 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    pointer-events: auto;
}

.notification-flyout.show {
    right: 20px;
    opacity: 1;
    visibility: visible;
}

.notification-flyout {
    opacity: 0;
    visibility: hidden;
    transition: right 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.notification-flyout.error .notification-message {
    color: #d32f2f;
}

.notification-flyout.success {
    border-left: 4px solid #4caf50;
}

.notification-flyout.error {
    border-left: 4px solid #d32f2f;
}

.notification-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    color: #333;
}

/* Floating Connect Button Styles */
.floating-connect-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 119px;
    height: 119px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4c430 0%, #ff9500 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(255, 149, 0, 0.4);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 18px;
    color: #000000;
    text-decoration: none;
    padding: 0;
    line-height: 1.2;
}

.floating-connect-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(255, 149, 0, 0.5);
}

.floating-connect-btn:active {
    transform: scale(0.98);
}

.floating-connect-btn .cursor-icon {
    width: 24px;
    height: 24px;
    margin-top: 4px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Contact Modal Styles */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.contact-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 680px;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #000;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #ffffff;
    transform: rotate(90deg);
}

.modal-header-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    border-radius: 20px 20px 0 0;
}

.modal-body {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

.modal-title {
    font-family: 'Abril Fatface', serif;
    font-size: 32px;
    font-weight: 400;
    color: #0b1a34;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 12px;
}

.modal-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ff9500;
}

.contact-form {
    margin-top: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0b1a34;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    padding: 12px 16px;
    border: none;
    border-bottom: 2px solid #d0d0d0;
    background: #f8f8f8;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: #ff9500;
    background: #ffffff;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%230b1a34' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Montserrat', sans-serif;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.captcha-display {
    background: #f0f0f0;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 8px;
    user-select: none;
    color: #0b1a34;
    text-decoration: line-through;
    text-decoration-style: wavy;
    text-decoration-color: #ff9500;
}

.captcha-refresh {
    width: 40px;
    height: 40px;
    background: #ff9500;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.captcha-refresh:hover {
    background: #e68500;
    transform: rotate(180deg);
}

.captcha-refresh svg {
    width: 20px;
    height: 20px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f4c430 0%, #ff9500 100%);
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 149, 0, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.error-message {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-bottom-color: #d32f2f;
}

.form-group.error .error-message {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 800px) {
    .floating-connect-btn {
        width: 102px;
        height: 102px;
        bottom: 24px;
        right: 24px;
        font-size: 16px;
    }

    .floating-connect-btn .cursor-icon {
        width: 20px;
        height: 20px;
        margin-top: 3px;
    }

    .contact-modal {
        padding: 16px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .modal-content {
        max-width: 90%;
        width: 90%;
        max-height: 90vh;
        margin: 0 auto;
    }

    .modal-body {
        padding: 30px 24px;
    }

    .modal-title {
        font-size: 24px;
        padding-bottom: 10px;
    }

    .modal-title::after {
        width: 50px;
        height: 2.5px;
    }

    .contact-form {
        margin-top: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 10px 14px;
    }

    .captcha-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .captcha-input {
        width: 100%;
    }

    .submit-btn {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .floating-connect-btn {
        width: 85px;
        height: 85px;
        bottom: 20px;
        right: 20px;
        font-size: 14px;
    }

    .floating-connect-btn .cursor-icon {
        width: 18px;
        height: 18px;
        margin-top: 2px;
    }

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

    .modal-body {
        padding: 24px 16px;
    }

    /* Mobile notification adjustments */
    .notification-flyout {
        max-width: calc(100vw - 40px);
        right: -100vw;
    }

    .notification-flyout.show {
        right: 20px;
    }
}