/* Hide SureForms Branding */
.srfm-branding {
    display: none !important;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* General Response Styling */
.responsefsf-response {
    display: flex;
    flex-direction: column;
    row-gap: var(--srfm-spacing-medium);
    margin-top: var(--srfm-spacing-medium);
    padding: var(--srfm-spacing-large);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: auto;
}

/* Loading and Progress Styling */
/* Progress Box Styling */
#responsefsf-progress-box {
    align-items: center;
    justify-content: center;
    margin: var(--srfm-spacing-medium) auto;
    padding: var(--srfm-spacing-medium);
    text-align: center;
}

/* Inner Container for Progress */
.responsefsf-inner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--srfm-spacing-medium);
}

.response-body, 
.responsefsf-generating {
        font-size: var(--srfm-heading-font-size-lg);
        font-weight: var(--srfm-font-weight-semibold);
        color: var(--srfm-color-input-text);
        text-align: center;
        margin: 0 0 var(--srfm-spacing-medium) 0; /* Added bottom margin for spacing */
    }

/* Progress Circle Container */
#progress-circle-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin-top: var(--srfm-spacing-medium);
}

/* Outer Circle for Progress Background */
#progress-circle-container circle:first-child {
    stroke: var(--srfm-color-input-border);
    stroke-width: 10;
    fill: none;
}

/* Circle is a div or a span with the class "progress-circle" */
/* Apply SureForms variables for consistency */
:root {
    --srfm-primary-color: var(--srfm-color-scheme-primary, #0C78FB); /* Use primary color from SureForms */
    --srfm-text-on-primary: var(--srfm-color-scheme-text-on-primary, #FFFFFF); /* White text on primary */
    --srfm-text-color: var(--srfm-color-scheme-text, #1E1E1E); /* Main text color */
    --srfm-font-size: var(--srfm-label-font-size, 16px); /* Default font size from SureForms */
    --srfm-padding: 20px; /* Space around elements */
  }
  
/* Apply SureForms variables for consistency */
:root {
    --srfm-primary-color: var(--srfm-color-scheme-primary, #0C78FB); /* Use primary color from SureForms */
    --srfm-text-on-primary: var(--srfm-color-scheme-text-on-primary, #FFFFFF); /* White text on primary */
    --srfm-text-color: var(--srfm-color-scheme-text, #1E1E1E); /* Main text color */
    --srfm-font-size: var(--srfm-label-font-size, 16px); /* Default font size from SureForms */
    --srfm-padding: 20px; /* Space around elements */
  }
  
  /* Circle and Progress Styles */
  /* Apply SureForms variables for consistency */
:root {
    --srfm-primary-color: var(--srfm-color-scheme-primary, #0C78FB); /* Use primary color from SureForms */
    --srfm-text-on-primary: var(--srfm-color-scheme-text-on-primary, #FFFFFF); /* White text on primary */
    --srfm-text-color: var(--srfm-color-scheme-text, #1E1E1E); /* Main text color */
    --srfm-font-size: var(--srfm-label-font-size, 16px); /* Default font size from SureForms */
    --srfm-padding: 20px; /* Space around elements */
  }
  
  /* Circle and Progress Styles */
/* Apply SureForms variables for consistency */
:root {
    --srfm-primary-color: var(--srfm-color-scheme-primary, #0C78FB); /* Primary color from SureForms */
    --srfm-text-on-primary: var(--srfm-color-scheme-text-on-primary, #FFFFFF); /* White text on primary */
    --srfm-text-color: var(--srfm-color-scheme-text, #1E1E1E); /* Main text color */
    --srfm-font-size: var(--srfm-label-font-size, 16px); /* Font size from SureForms */
    --srfm-padding: 20px; /* Space around elements */
  }
  
/* Container for the progress circle */
.progress-circle-container {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Progress Percentage Styling */
#progress-percentage {
    font-size: 16px;
    font-weight: bold;
    color: #7f56d9;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1; /* Ensures that the text aligns correctly vertically */
    display: inline-block;
}

/* Styling for the SVG circle */
#progress-circle-container svg {
    position: absolute;
    z-index: 1;
}


  
  /* Optional: Mobile responsiveness */
  @media (max-width: 600px) {
    .progress-circle-container {
      width: 80px;
      height: 80px;
    }
    #progress-percentage {
      font-size: 14px; /* Slightly smaller font size on mobile */
      padding-bottom: 10px; /* Adjust padding for mobile */
    }
  }
  
  
/* Container for the PDF */
.response-pdf {
    width: 100%;  /* Ensure the container takes up the full width of the parent */
    max-width: 100%;  /* Ensures the iframe does not exceed the container width */
    margin: 0 auto;  /* Center the container */
    padding: 10px;  /* Optional: adds padding around the iframe */
    box-sizing: border-box;  /* Ensures padding does not affect the total width */
    display: block;  /* Ensure it's a block-level container */
}

/* Styling for the iframe to make it responsive */
.response-pdf iframe {
    width: 100%;  /* Ensure the iframe takes up the full width of the container */
    height: 80vh;  /* Set height to 80% of viewport height */
    max-height: 500px;  /* Optional: max height to limit how tall the iframe can be */
    border: none;  /* Removes default iframe border */
    display: block;  /* Ensures iframe is a block element */
    margin: 0 auto;  /* Center the iframe within its parent container */
}




  

/* Generating Response Text */
.responsefsf-generating {
    display: block; /* Ensures it's treated as a block-level element */
    margin-bottom: 20px; /* Explicit spacing below the text */
}


/* Error Message */
.responsefsf-error-message {
    margin: 0;
    padding: 0 var(--srfm-col-gap-between-blocks);
    margin-bottom: var(--srfm-row-gap-between-blocks);
    color: var(--srfm-color-error-text);
    font-size: var(--srfm-label-font-size);
    font-weight: var(--srfm-label-font-weight);
    line-height: var(--srfm-label-line-height);
    text-align: center;
}

/* Embedded Media */
.media-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    width: 100%;
    margin-top: var(--srfm-spacing-medium);
}

.media-wrapper iframe,
.media-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* Audio Player */
.audio-player {
    width: 100%;
    max-width: 600px;
    margin: var(--srfm-spacing-medium) auto;
    display: block;
}

/* Response Body Headers */
.responsefsf-response h1,
.responsefsf-response h2,
.responsefsf-response h3,
.responsefsf-response h4,
.responsefsf-response h5,
.responsefsf-response h6 {
    color: var(--srfm-color-input-text);
    margin: var(--srfm-spacing-small) 0;
    font-weight: var(--srfm-font-weight-bold);
    line-height: var(--srfm-label-line-height);
}

/* Paragraphs and Lists */
.responsefsf-response p {
    color: var(--srfm-color-input-text);
    margin: var(--srfm-spacing-small) 0;
    line-height: var(--srfm-label-line-height);
}

.responsefsf-response ul {
    list-style-type: disc;
    margin: var(--srfm-spacing-small) 0 var(--srfm-spacing-medium) var(--srfm-spacing-medium);
}

.responsefsf-response ol {
    list-style-type: decimal;
    margin: var(--srfm-spacing-small) 0 var(--srfm-spacing-medium) var(--srfm-spacing-medium);
}

.responsefsf-inner-container > * {
    margin-bottom: 20px; /* Add 20px spacing between items */
}

.responsefsf-inner-container > *:last-child {
    margin-bottom: 0; /* Remove margin from the last child */
}

/* Buttons Container */
.responsefsf-buttons {
    display: flex;
    justify-content: center;
    gap: 12px; /* Adjusted to ensure consistency */
    margin-top: 16px;
    padding: 10px 0; /* Adds some vertical padding */
}

/* General Button Styling */
.responsefsf-button {
    cursor: pointer;
    padding: 6px 12px; /* Maintain smaller padding for compact buttons */
    background: var(--srfm-color-input-background, #fff); /* Fallback to white if variable is unavailable */
    font-size: 12px; /* Ensure text is compact */
    line-height: 16px;
    font-weight: 600;
    color: var(--srfm-color-input-text, #000); /* Fallback to black text */
    border: 0.5px solid var(--srfm-color-input-border, #ccc); /* Slightly thin border for subtlety */
    border-radius: 4px; /* Consistent rounded corners */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px; /* Maintain spacing between SVG and text */
    width: auto;
    min-width: 80px; /* Ensure button doesn’t shrink too much */
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
}

.responsefsf-button:hover {
    background-color: var(--srfm-color-input-hover, #f7f7f7);
    border-color: var(--srfm-color-input-hover-border, #bbb);
    color: var(--srfm-color-input-hover-text, #000);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow on hover */
}

.responsefsf-button:focus {
    outline: none;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3); /* Subtle focus ring */
}

/* Copy Button Styling */
.copy-button {
    background-color: var(--srfm-color-info-background, #e0f7fa); /* Light blue */
    color: var(--srfm-color-info-text, #007b8a); /* Darker text */
    border: 0.5px solid var(--srfm-color-info-border, #a3d8e5); /* Match the color scheme */
}

/* Back Button Styling */
.back-button {
    background-color: var(--srfm-color-warning-background, #ffebee); /* Light red */
    color: var(--srfm-color-warning-text, #c62828); /* Darker red */
    border: 0.5px solid var(--srfm-color-warning-border, #e57373); /* Subtle matching border */
}

/* Ensure SVG and Text are Aligned */
.responsefsf-button svg {
    vertical-align: middle; /* Align SVG with text */
    height: 16px; /* Standardize icon size */
    width: 16px;
}
