/* ==========================================================================
   Multi-select Component Styles
   ========================================================================== 
*/
.wa-technological-procedures {
	display: flex;
	flex-direction: column;
	gap: var(--space-m);
}

.wa-technological-procedure {
	display: flex;
	flex-direction: column;
	gap: var(--space-s);
}

.wa-technological-procedure-title {
	color: var(--secondary);
}

.wa-technological-procedure-content {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
}

.wa-technological-procedure-branch {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-xs) * 1);
    padding: var(--space-m);
    border-radius: var(--radius-l);
    background-color: var(--shade-ultra-light);
    margin-bottom: var(--space-s);
    border: 1px solid var(--base-light);
}

.wa-technological-procedure-branch-step select {
	border-radius: var(--radius-xs);
	background-color: var(--white);
}

/* Buttons */

/* Add Button - More important */
.wa-technological-procedure-add-branch {
	width: fit-content;
	border-radius: var(--radius-s);
	padding: var(--space-xs) var(--space-s);
	background-color: var(--primary-trans-20);
	font-weight: 700;
	transition: .2s all ease-in-out;
	margin-bottom: var(--space-m);
}

.wa-technological-procedure-add-branch:hover {
	background-color: var(--primary);
	color: var(--white);
}

/* Remove Button */
.wa-technological-procedure-remove-branch {
	text-decoration: underline;
	text-underline-offset: 2px;
	width: fit-content;
	transition: .2s all ease-in-out;
    background-color: transparent;
	font-size: calc(var(--text-m) * .9);
}

.wa-technological-procedure-remove-branch:hover {
	color: var(--primary-hover);	
}

/* Checkbox */
.wa-technological-procedure-branch-add-free-text {
	display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-xs);
	margin-block: var(--space-xs);
}

.wa-technological-procedure-branch-add-free-text input {
	position: relative;
    top: 0;
	width: 2.4rem;
    height: 2.4rem;
}
.wa-technological-procedure-branch-add-free-text label {
	margin: 0;
	color: var(--base) !important;
	display: block;
    line-height: 1;
    font-weight: 400;
}

.wa-technological-procedure-branch-hint {
    padding: var(--space-xs);
    background-color: var(--secondary-ultra-light);
    border-radius: var(--radius-xs);
    font-size: calc(var(--text-m) * 0.9);
    border-left: 3px solid var(--primary);
    display: flex;
    align-items: flex-start;
    gap: calc(var(--space-xs) * .8);
}

.wa-technological-procedure-branch-hint::before {
    content: "";
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
    background-color: var(--primary);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.wa-technological-procedure-branch-free-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.wa-technological-procedure-branch-free-text textarea {
    width: 100%;
    min-height: 100px;
    padding: var(--space-xs);
    border-radius: var(--radius-xs);
    border: 1px solid var(--base-light);
    resize: vertical;
}

/* ==========================================================================
   Technical Support Form Styles
   ========================================================================== 
*/
body.page-id-2822 {
    background-color: var(--shade-ultra-light);
}

.wa-technical-support-form {
    padding: var(--space-l);
    border-radius: var(--radius-xl);
    background-color: var(--white) !important;
}

/* Form Layout */
.wa-technical-support-form fieldset {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
}

.wa-technical-support-form .ff-el-group {
    margin-bottom: 0 !important;
}

.wa-technical-support-form .ff-t-container,
.wa-technical-support-form .ff-t-cell {
    display: flex;
    gap: var(--space-s) !important;
}

/* Form Elements */
.wa-technical-support-form .ff-el-input--content .ff-el-form-check {
    margin: var(--space-xs) 0 !important;
}

.wa-technical-support-form .ff-el-input--content .ff-el-form-check:last-child {
    margin-bottom: 0 !important;
}

.wa-technical-support-form .ff-el-input--content .ff-el-form-check .ff-el-form-check-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-xs);
}

.wa-technical-support-form .ff-el-input--content .ff-el-form-check .ff-el-form-check-label span {
    color: var(--base) !important;
}

.wa-technical-support-form .ff-el-input--content .ff-el-form-check .ff-el-form-check-label input {
    width: 2.4rem;
    height: 2.4rem;
}

/* Form Labels */
.wa-technical-support-form .ff-el-input--label label {
    color: var(--base);
    font-weight: 700 !important;
    font-size: calc(var(--text-s) * 1.1);
    margin-bottom: 2px;
}

.wa-technical-support-form .wa-tm-hidden {
    display: none !important;
}

/* TinyMCE Editor */
.wa-technical-support-form .mce-tinymce.mce-container.mce-panel {
    overflow: hidden;
    border-radius: var(--radius-m);
}

/* Range Slider */
.wa-technical-support-form .rangeslider.rangeslider--horizontal {
    height: 1rem;
    margin-bottom: 20px;
}

.wa-technical-support-form .rangeslider.rangeslider--horizontal .rangeslider__fill {
    background-color: var(--secondary);
}

.wa-technical-support-form .rangeslider.rangeslider--horizontal .rangeslider__handle {
    top: -10px !important;
    width: 3rem;
    height: 3rem;
}

.wa-technical-support-form .rangeslider.rangeslider--horizontal .rangeslider__handle:after {
    content: none !important;
}

.wa-technical-support-form .ff_range_value:after {
    content: "%";
}

/* Voice Message Box */
.wa-technical-support-form .vmwpmdp-wpvoicemessage_fluentforms-start-box {
    background-color: var(--shade-ultra-light);
    border-radius: var(--radius-m);
    padding: var(--space-l);
}

.wa-technical-support-form .vmwpmdp-wpvoicemessage_fluentforms-start-box 
.vmwpmdp-wpvoicemessage_fluentforms-start-btn.vmwpmdp-icon-position-before {
    background-color: var(--secondary) !important;
    border-radius: var(--radius-s) !important;
}

/* Section Break */
.wa-technical-support-form .ff-el-section-break {
    padding: var(--space-s);
    background-color: var(--shade-ultra-light);
    color: var(--secondary);
    border-radius: var(--radius-m);
    border: 1px solid var(--base-light);
    line-height: 1;
    margin-top: var(--space-s) !important;
}

.wa-technical-support-form .ff-el-section-break hr {
    display: none;
}

.wa-technical-support-form .ff-el-section-break .ff-el-section-title {
    margin-bottom: 0;
}

/* Success Message */
.ff-message-success {
    border-radius: var(--radius-m);
}

/* Voice Message Button Hover */
.vmwpmdp-wpvoicemessage_fluentforms-form-box 
.vmwpmdp-wpvoicemessage_fluentforms-start-btn:not(.vmwpmdp-wpvoicemessage_fluentforms-custom):hover svg {
    background-color: transparent !important;
}

/* ==========================================================================
   Custom Select Block Styles
   ========================================================================== 
*/
.wd_block {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    transition: .2s all ease-in-out;
}

.wd_block label {
    color: var(--base);
    font-weight: 700 !important;
    font-size: calc(var(--text-s) * 1.1);
}

.wd_block h3 {
    color: var(--secondary);
}

.wd_block select {
    border-radius: var(--radius-s);
    border: 1px solid var(--base-light);
    color: var(--base);
}

.wd_block select:focus {
    border-color: var(--secondary);
    outline: none;
}

/* Custom Title */
.wd_block .wa-custom-title {
    padding: 10px 0 20px;
    font-size: 23px;
    font-weight: 400;
    margin: 0;
    color: var(--secondary);
}

/* Post Type Specific */
.wd_block .wa-custom-post-type #titlediv {
    display: none;
}

.wd_block .wa-custom-post-type .wp-list-table .column-title strong {
    display: block;
    padding: 8px 0;
    color: var(--secondary);
    cursor: default;
}

/* Select Pair */
.wd_block .wd_select_pair {
    margin-bottom: 1em;
}

/* Error Handling */
.wd_block .wd_error {
    display: none;
    color: red;
    margin-top: 1em;
}

.wd_block .wd_retry_btn {
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.wd_block .wd_retry_btn:hover {
    background-color: #005d87;
}

/* Debug Styles */
.wd_block .wd-debug-title {
    color: #3c3c3c;
}

.wd_block .wd-debug-subtitle {
    margin-top: 30px;
    color: #1d2327;
}

.wd_block .wd-debug-pre {
    background: #f7f7f7;
    padding: 10px;
    border: 1px solid #ccc;
    overflow: auto;
}

/* ==========================================================================
   Admin columns - Technical status
   ========================================================================== 
*/
.wa_technical_status {
    display: flex;
}

.mb-admin-columns.wa-in-progress {
    padding: .5rem 2rem;
    background-color: rgb(255, 102, 0);
    color: white !important;
    font-weight: 700;
    border-radius: 5px;
}

.mb-admin-columns.wa-resolved {
    padding: .5rem 2rem;
    background-color: rgb(5, 160, 31);
    color: white !important;
    font-weight: 700;
    border-radius: 5px;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== 
*/
@media (max-width: 767px) {
    .wa-technical-support-form .ff-t-container,
    .wa-technical-support-form .ff-t-cell {
        flex-direction: column;
    }

    .wa-technical-support-form .ff-el-section-break {
        margin-top: var(--space-xs) !important;
        margin-bottom: var(--space-s) !important;
    }
}

@media (max-width: 991px) {
    .wa-technical-support-form {
        padding: var(--space-s);
    }
}

/* Audio Player Styles */
.wa-audio-player {
    width: 100%;
    margin: 10px 0;
    border-radius: 4px;
    background: #f5f5f5;
    padding: 5px;
}

.wa-audio-player::-webkit-media-controls-panel {
    background: #f5f5f5;
    border-radius: 4px;
}

.wa-audio-player::-webkit-media-controls-play-button {
    background-color: #0073aa;
    border-radius: 50%;
}

.wa-audio-player::-webkit-media-controls-timeline {
    background-color: #e0e0e0;
    border-radius: 2px;
    margin: 0 10px;
}

.wa-audio-player::-webkit-media-controls-current-time-display,
.wa-audio-player::-webkit-media-controls-time-remaining-display {
    color: #333;
}

.wa-audio-player::-webkit-media-controls-volume-slider {
    background-color: #e0e0e0;
    border-radius: 2px;
    padding: 0 5px;
}

.wa-audio-player::-webkit-media-controls-mute-button {
    background-color: #0073aa;
    border-radius: 50%;
}

/*Login Modal*/
.wa-login-modal .x-modal_content {
    border-radius: var(--radius-m);
    padding: var(--space-l) !important;
}

.wa-login-modal .x-modal_content .bricks-button.bricks-background-primary {
    color: var(--white);
    background-color: var(--action);
    font-size: var(--text-m);
    padding-inline: var(--space-m);
    padding-block: calc(var(--space-s) * 0.7);
    border-radius: var(--radius-xs);
    transition: all 0.4s ease-in-out;
    font-weight: 700;
    overflow: hidden;
    position: relative;
    width: fit-content;
    display: flex;
    justify-content: center;
    flex-direction: row;
    cursor: pointer;
    align-items: center;
}

.wa-login-modal .x-modal_content input {
    margin-block: 0 !important;
    margin-bottom: 0 !important;
}