/* CIM Survey Public Styles - Carousel Version */

.cim-survey-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Survey Header */
.cim-survey-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #2271b1;
}

.cim-survey-logo {
    margin-bottom: 20px;
}

.cim-survey-logo img {
    max-width: 250px;
    max-height: 120px;
    height: auto;
}

.cim-survey-title {
    font-size: 28px;
    color: #1d2327;
    margin: 10px 0;
    font-weight: 600;
}

.cim-survey-company {
    font-size: 16px;
    color: #50575e;
    margin: 5px 0 0 0;
}

/* Progress Bar */
.cim-progress-container {
    margin-bottom: 30px;
}

.cim-progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.cim-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1 0%, #135e96 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.cim-progress-text {
    text-align: center;
    font-size: 14px;
    color: #50575e;
    font-weight: 600;
}

.cim-current-step {
    color: #2271b1;
    font-size: 16px;
}

/* Carousel Container */
.cim-survey-carousel {
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

.cim-carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cim-carousel-slide {
    min-width: 100%;
    padding: 30px 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cim-carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Question Counter */
.cim-question-header {
    margin-bottom: 20px;
}

.cim-question-counter {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f6fc;
    color: #2271b1;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Questions */
.cim-survey-question {
    /* Carousel slide styling */
}

.cim-question-label {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 25px;
    line-height: 1.4;
}

.cim-required {
    color: #d63638;
    margin-left: 4px;
}

.cim-question-input {
    margin-top: 15px;
}

/* Rating Scale */
.cim-rating-scale {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.cim-rating-option {
    display: inline-block;
    cursor: pointer;
}

.cim-rating-option input[type="radio"] {
    display: none;
}

.cim-rating-label {
    display: inline-block;
    padding: 18px 26px;
    background: #ffffff;
    border: 3px solid #dcdcde;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #50575e;
    min-width: 60px;
    text-align: center;
    transition: all 0.2s ease;
}

.cim-rating-option input:checked + .cim-rating-label {
    background: #2271b1;
    border-color: #2271b1;
    color: #ffffff;
    transform: scale(1.05);
}

.cim-rating-option:hover .cim-rating-label {
    border-color: #2271b1;
    transform: scale(1.02);
}

.cim-rating-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
    color: #50575e;
    font-weight: 500;
}

/* Agree/Disagree */
.cim-agree-disagree {
    display: flex;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.cim-ad-option {
    flex: 1;
    cursor: pointer;
}

.cim-ad-option input[type="radio"] {
    display: none;
}

.cim-ad-label {
    display: block;
    padding: 20px 30px;
    background: #ffffff;
    border: 3px solid #dcdcde;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #50575e;
    text-align: center;
    transition: all 0.2s ease;
}

.cim-ad-option input:checked + .cim-ad-label {
    background: #2271b1;
    border-color: #2271b1;
    color: #ffffff;
    transform: scale(1.02);
}

.cim-ad-option:hover .cim-ad-label {
    border-color: #2271b1;
}

/* Text Response */
.cim-text-response {
    width: 100%;
    padding: 15px;
    border: 3px solid #dcdcde;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    min-height: 150px;
    transition: border-color 0.2s ease;
}

.cim-text-response:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.cim-char-count {
    text-align: right;
    font-size: 13px;
    color: #50575e;
    margin-top: 8px;
    font-weight: 500;
}

/* Contact Information */
.cim-survey-contact {
    /* Carousel slide styling */
}

.cim-survey-contact h3 {
    font-size: 22px;
    color: #1d2327;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.cim-contact-description {
    color: #50575e;
    margin: 0 0 25px 0;
    font-size: 15px;
}

.cim-contact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cim-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d2327;
    font-size: 15px;
}

.cim-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #dcdcde;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.cim-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Navigation Buttons */
.cim-survey-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.cim-nav-btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cim-prev-btn {
    color: #2271b1;
    background: #ffffff;
    border: 2px solid #2271b1;
}

.cim-prev-btn:hover {
    background: #f0f6fc;
}

.cim-skip-btn {
    color: #50575e;
    background: #ffffff;
    border: 2px solid #8c8f94;
    margin-left: auto;
}

.cim-skip-btn:hover {
    background: #f0f0f1;
    border-color: #50575e;
}

.cim-next-btn,
.cim-submit-btn {
    color: #ffffff;
    background: #2271b1;
}

.cim-next-btn:hover,
.cim-submit-btn:hover {
    background: #135e96;
}

.cim-nav-btn:disabled {
    background: #dcdcde;
    color: #8c8f94;
    cursor: not-allowed;
    border-color: #dcdcde;
}

.cim-nav-icon {
    font-size: 18px;
    line-height: 1;
}

/* Messages */
.cim-survey-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.cim-survey-message.success {
    background: #d7f0d7;
    color: #007017;
    border: 1px solid #00a32a;
}

.cim-survey-message.error {
    background: #fcddde;
    color: #8b0000;
    border: 1px solid #d63638;
}

/* Success Screen */
.cim-survey-success {
    text-align: center;
    padding: 40px 20px;
}

.cim-success-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    margin: 0 auto 20px;
    background: #00a32a;
    color: #ffffff;
    font-size: 48px;
    border-radius: 50%;
}

.cim-survey-success h3 {
    font-size: 28px;
    color: #1d2327;
    margin: 0 0 15px 0;
}

.cim-success-message {
    font-size: 16px;
    color: #50575e;
    margin-bottom: 30px;
}

.cim-results-summary {
    text-align: left;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin: 30px 0;
}

.cim-result-item {
    padding: 15px 0;
    border-bottom: 1px solid #dcdcde;
}

.cim-result-item:last-child {
    border-bottom: none;
}

.cim-result-question {
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 5px;
}

.cim-result-answer {
    color: #50575e;
}

.cim-success-actions {
    margin-top: 30px;
}

.cim-copy-results-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #2271b1;
    background: #ffffff;
    border: 2px solid #2271b1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cim-copy-results-btn:hover {
    background: #2271b1;
    color: #ffffff;
}

/* Error Message */
.cim-error {
    padding: 20px;
    background: #fcddde;
    color: #8b0000;
    border: 1px solid #d63638;
    border-radius: 6px;
    text-align: center;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cim-survey-container {
        padding: 20px;
        margin: 20px;
    }

    .cim-survey-title {
        font-size: 24px;
    }

    .cim-question-label {
        font-size: 19px;
    }

    .cim-contact-fields {
        grid-template-columns: 1fr;
    }

    .cim-rating-scale {
        justify-content: center;
    }

    .cim-rating-label {
        padding: 15px 22px;
        font-size: 18px;
    }

    .cim-agree-disagree {
        flex-direction: column;
    }

    .cim-survey-navigation {
        flex-wrap: wrap;
        gap: 10px;
    }

    .cim-nav-btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .cim-skip-btn {
        order: 3; /* Place skip button at the end on mobile */
        flex: 1 1 100%;
        margin-left: 0;
    }

    .cim-nav-btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .cim-carousel-slide {
        padding: 20px 10px;
    }
}


/* Survey Header */
.cim-survey-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #2271b1;
}

.cim-survey-logo {
    margin-bottom: 20px;
}

.cim-survey-logo img {
    max-width: 250px;
    max-height: 120px;
    height: auto;
}

.cim-survey-title {
    font-size: 28px;
    color: #1d2327;
    margin: 10px 0;
    font-weight: 600;
}

.cim-survey-company {
    font-size: 16px;
    color: #50575e;
    margin: 5px 0 0 0;
}

/* Questions */
.cim-survey-questions {
    margin-bottom: 40px;
}

.cim-survey-question {
    margin-bottom: 35px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #2271b1;
}

.cim-question-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 15px;
}

.cim-question-number {
    color: #2271b1;
    margin-right: 8px;
}

.cim-required {
    color: #d63638;
    margin-left: 4px;
}

.cim-question-input {
    margin-top: 15px;
}

/* Rating Scale */
.cim-rating-scale {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cim-rating-option {
    display: inline-block;
    cursor: pointer;
}

.cim-rating-option input[type="radio"] {
    display: none;
}

.cim-rating-label {
    display: inline-block;
    padding: 12px 20px;
    background: #ffffff;
    border: 2px solid #dcdcde;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #50575e;
    min-width: 50px;
    text-align: center;
    transition: all 0.2s ease;
}

.cim-rating-option input:checked + .cim-rating-label {
    background: #2271b1;
    border-color: #2271b1;
    color: #ffffff;
}

.cim-rating-option:hover .cim-rating-label {
    border-color: #2271b1;
}

.cim-rating-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
    color: #50575e;
}

/* Agree/Disagree */
.cim-agree-disagree {
    display: flex;
    gap: 15px;
}

.cim-ad-option {
    flex: 1;
    cursor: pointer;
}

.cim-ad-option input[type="radio"] {
    display: none;
}

.cim-ad-label {
    display: block;
    padding: 15px 20px;
    background: #ffffff;
    border: 2px solid #dcdcde;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #50575e;
    text-align: center;
    transition: all 0.2s ease;
}

.cim-ad-option input:checked + .cim-ad-label {
    background: #2271b1;
    border-color: #2271b1;
    color: #ffffff;
}

.cim-ad-option:hover .cim-ad-label {
    border-color: #2271b1;
}

/* Text Response */
.cim-text-response {
    width: 100%;
    padding: 12px;
    border: 2px solid #dcdcde;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.cim-text-response:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.cim-char-count {
    text-align: right;
    font-size: 13px;
    color: #50575e;
    margin-top: 5px;
}

/* Contact Information */
.cim-survey-contact {
    margin-bottom: 30px;
    padding: 25px;
    background: #f0f6fc;
    border-radius: 6px;
}

.cim-survey-contact h3 {
    font-size: 20px;
    color: #1d2327;
    margin: 0 0 10px 0;
}

.cim-contact-description {
    color: #50575e;
    margin: 0 0 20px 0;
}

.cim-contact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cim-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d2327;
}

.cim-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #dcdcde;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.cim-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Submit Button */
.cim-survey-actions {
    text-align: center;
    margin-top: 30px;
}

.cim-submit-btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: #2271b1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cim-submit-btn:hover {
    background: #135e96;
}

.cim-submit-btn:disabled {
    background: #dcdcde;
    cursor: not-allowed;
}

/* Messages */
.cim-survey-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.cim-survey-message.success {
    background: #d7f0d7;
    color: #007017;
    border: 1px solid #00a32a;
}

.cim-survey-message.error {
    background: #fcddde;
    color: #8b0000;
    border: 1px solid #d63638;
}

/* Success Screen */
.cim-survey-success {
    text-align: center;
    padding: 40px 20px;
}

.cim-success-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    margin: 0 auto 20px;
    background: #00a32a;
    color: #ffffff;
    font-size: 48px;
    border-radius: 50%;
}

.cim-survey-success h3 {
    font-size: 28px;
    color: #1d2327;
    margin: 0 0 15px 0;
}

.cim-success-message {
    font-size: 16px;
    color: #50575e;
    margin-bottom: 30px;
}

.cim-results-summary {
    text-align: left;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin: 30px 0;
}

.cim-result-item {
    padding: 15px 0;
    border-bottom: 1px solid #dcdcde;
}

.cim-result-item:last-child {
    border-bottom: none;
}

.cim-result-question {
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 5px;
}

.cim-result-answer {
    color: #50575e;
}

.cim-success-actions {
    margin-top: 30px;
}

.cim-copy-results-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #2271b1;
    background: #ffffff;
    border: 2px solid #2271b1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cim-copy-results-btn:hover {
    background: #2271b1;
    color: #ffffff;
}

/* Error Message */
.cim-error {
    padding: 20px;
    background: #fcddde;
    color: #8b0000;
    border: 1px solid #d63638;
    border-radius: 6px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .cim-survey-container {
        padding: 20px;
        margin: 20px;
    }

    .cim-survey-title {
        font-size: 24px;
    }

    .cim-contact-fields {
        grid-template-columns: 1fr;
    }

    .cim-rating-scale {
        justify-content: center;
    }

    .cim-agree-disagree {
        flex-direction: column;
    }
}

/* Anonymity Question Styles */
.cim-survey-anonymity {
    padding: 20px;
}

.cim-anonymity-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0 25px 0;
    padding: 15px;
    background: #f0f6fc;
    border-left: 3px solid #2271b1;
    border-radius: 4px;
}

.cim-radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cim-radio-option {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cim-radio-option:hover {
    background: #f0f6fc;
    border-color: #2271b1;
}

.cim-radio-option input[type="radio"] {
    margin: 3px 12px 0 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cim-radio-option input[type="radio"]:checked ~ .cim-radio-label {
    color: #1a1a1a;
}

.cim-radio-option input[type="radio"]:checked {
    accent-color: #2271b1;
}

.cim-radio-label {
    flex: 1;
    color: #50575e;
    font-size: 15px;
    line-height: 1.6;
    cursor: pointer;
}

.cim-radio-label strong {
    display: block;
    color: #1a1a1a;
    margin-bottom: 4px;
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .cim-radio-option {
        padding: 15px;
    }
    
    .cim-radio-label {
        font-size: 14px;
    }
    
    .cim-radio-label strong {
        font-size: 15px;
    }
}
