/* ========================================
   Form Feedback Modal System
   ======================================== */

/* Modal Overlay - covers entire viewport */
#formFeedbackOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color:rgba(0, 0, 0, 0.6352941176470588);
    z-index: 9999;
    display: none; /* Hidden by default */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Show state */
#formFeedbackOverlay.show {
    display: flex;
    visibility: visible;
    opacity: 1;
    justify-content: center;
    align-items: center;
}

/* Modal Container - centered message box */
#formFeedbackContainer {
    position: relative;
    width:445px;
    background-color: #FFFFFF;
    border-width:1px;
    border-style:solid;
    border-color:rgba(27, 27, 27, 1);
    border-radius:10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform-origin: 50% 50%;
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
}

#formFeedbackOverlay.show #formFeedbackContainer {
    transform: scale(1);
}

/* Status Bar - colored top border indicating success/error */
#formFeedbackStatusBar {
    width: 100%;
    height: 6px;
    background-color: darkgreen; /* Default success green */
}

#formFeedbackStatusBar.error {
    background-color: #F44336; /* Error red */
}

#formFeedbackStatusBar.warning {
    background-color: #FF9800; /* Warning orange */
}

#formFeedbackStatusBar.info {
    background-color: #2196F3; /* Info blue */
}

/* Close Button - X icon in top-right corner */
#formFeedbackCloseButton {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.54);
    font-size: 28px;
    line-height: 28px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    z-index: 10;
}

/* Content Area */
#formFeedbackContent {
    padding: 32px 24px 24px 24px;
}

/* Icon Container */
#formFeedbackIcon {
    text-align: center;
    margin-bottom: 14px;
    font-size: 48px;
    line-height: 1;
}

#formFeedbackIcon.success::before {
    content: "✓";
    color: darkgreen;
    font-weight: bold;
}

#formFeedbackIcon.error::before {
    content: "✕";
    color: #F44336;
    font-weight: bold;
}

#formFeedbackIcon.warning::before {
    content: "⚠";
    color: #FF9800;
    font-weight: bold;
}

#formFeedbackIcon.info::before {
    content: "ℹ";
    color: #2196F3;
    font-weight: bold;
}

/* Message Text */
#formFeedbackMessage {
    font-family:"Roboto-Regular", "Roboto", sans-serif;
    font-weight:400;
    font-style:normal;
    font-size:14px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.87);
    text-align: center;
    margin-bottom: 20px;
    min-height: 24px;
}

/* Icon Container - 3 evenly spaced action icons */
#formFeedbackIconContainer {
    display: flex;
    width: 75%;
    margin: auto auto;
    justify-content: space-evenly;
    align-items: center;
    padding-top: 8px;
    gap: 16px;
}

/* Individual Action Icons */
.formFeedbackActionIcon {
    width: 77px;
    height: 77px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
    position: relative;
}

/* Icon placeholders with default content */
#formFeedbackActionIconDemo {
    background-image: url('../../images/d/medical/main/demoButtonImage.png');
    background-position: left top;
    background-repeat: no-repeat;
    /* Example: set explicit size */
    background-size: 67px auto;
}

#formFeedbackActionIconWP {
    background-image: url('../../images/d/medical/main/whitePaperButtonImage.png');
    background-position: left top;
    background-repeat: no-repeat;
    /* Example: set explicit size */
    background-size: 67px auto;
}

#formFeedbackActionIconVideo {
    background-image: url('../../images/d/medical/main/videoButtonImage.png');
    background-position: left top;
    background-repeat: no-repeat;
    /* Example: set explicit size */
    background-size: 67px auto;
}
#formFeedbackActionIconDemo:hover {
    background-image: url('../../images/d/medical/main/demoButtonImage_hover.svg');
    background-position: left top;
    background-repeat: no-repeat;
    /* Example: set explicit size */
    background-size: cover;
}

#formFeedbackActionIconWP:hover {
    background-image: url('../../images/d/medical/main/whitePaperButtonImage_hover.svg');
    background-position: left top;
    background-repeat: no-repeat;
    /* Example: set explicit size */
    background-size: cover;
}

#formFeedbackActionIconVideo:hover {
    background-image: url('../../images/d/medical/main/videoButtonImage_hover.svg');
    background-position: left top;
    background-repeat: no-repeat;
    /* Example: set explicit size */
    background-size: cover;
}
/* Prevent body scroll when modal is open */
body.formFeedbackOpen {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #formFeedbackContainer {
        width: 95%;
        max-width: 95%;
    }

    #formFeedbackContent {
        padding: 24px 16px 20px 16px;
    }

    #formFeedbackIcon {
        font-size: 40px;
        margin-bottom: 16px;
    }

    #formFeedbackMessage {
        font-size: 14px;
        margin-bottom: 20px;
    }

    #formFeedbackCloseButton {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }

    .formFeedbackActionIcon {
        width: 40px;
        height: 40px;
    }

    .formFeedbackActionIcon::before {
        font-size: 20px;
    }
}

/* Accessibility: High contrast mode support */
@media (prefers-contrast: high) {
    #formFeedbackContainer {
        border: 2px solid #000000;
    }
}

/* Accessibility: Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #formFeedbackOverlay,
    #formFeedbackContainer,
    #formFeedbackCloseButton,
    .formFeedbackActionIcon {
        transition: none;
    }
}
