/* CSS Custom Properties */
:root {
    --primary-blue: #2563EB;
    --primary-blue-hover: #1D4ED8;
    --primary-blue-light: #EFF6FF;
    --text-primary: #111827;
    --text-secondary: #4A4A4A;
    --text-white: #FFFFFF;
    --text-light: #9CA3AF;
    --background: #FFFFFF;
    --surface: #FAFAFA;
    --border-color: #E5E7EB;
    --border-focus: #2563EB;
    --success-light-green: #1CAD67;
    --success-green: #059669;
    --error-red: #DC2626;
    --error-light-red: #ffe5e5;
    --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--surface);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 700px;
    position: relative;
}

/* loader Styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    transition: all 1s;
}

.loader {
    width: 15px;
    aspect-ratio: 1;
    border-radius: 50%;
    animation: l5 1s infinite linear alternate;
  }

  @keyframes l5 {
      0%  {box-shadow: 20px 0 #0075bb, -20px 0 #0002;background: #0075bb }
      33% {box-shadow: 20px 0 #0075bb, -20px 0 #0002;background: #0002}
      66% {box-shadow: 20px 0 #0002,-20px 0 #0075bb; background: #0002}
      100%{box-shadow: 20px 0 #0002,-20px 0 #0075bb; background: #0075bb }
  }

/* Feedback Form Styles */
.feedback-form {
    background: var(--background);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border: 1px solid var(--border-color);
    padding: 16px 22px 24px;
    min-height: 290px;
}

.header {
    padding: 0px 0px 0;
    /* float: right; */
    margin-bottom: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo svg {
    width: 140px;
    height: auto;
}

#agilusLogo {
    display: none;
}

#ddrcLogo {
    display: none;
    margin-top: 12px;
}

.agilus-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.025em;
}

.arrow {
    font-size: 20px;
    color: var(--primary-blue);
    font-weight: 300;
    opacity: 0.8;
}

#formContent {
   display: none;
}

.response-content {
    display: none;
    padding: 30vh 32px 30vh;
    text-align: center;
}

.form-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.form-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.2;
}

/* Rating Options */
.rating-container {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.rating-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--background);
}

.rating-option:hover {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-subtle);
}

.rating-option.selected {
    border-color: var(--primary-blue);
    background-color: var(--primary-blue-light);
}

.emoji {
    margin-bottom: 8px;
}

.rating-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Question Section */
.question-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Checkbox Container */
.checkbox-container {
    margin-bottom: 24px;
}

/* .checkbox-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

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

.checkbox-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}*/

.checkbox-item label {
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    /* flex: 1; */
    line-height: 2;
} 

/* Feedback Input Section */
.feedback-input-section {
    margin-bottom: 24px;
    position: relative;
}

.feedback-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

textarea {
    width: 100%;
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--background);
    resize: vertical;
    min-height: 75px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    line-height: 1.25;
}

textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

textarea::placeholder {
    color: var(--text-light);
}

.char-counter {
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 500;
    position: absolute;
    right: 10px;
    bottom: 15px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: var(--primary-blue-hover);
}

.submit-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-red);
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-top: 16px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-weight: 500;
    animation: slideIn 0.8s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--modal-overlay), 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.success-modal {
    background: var(--success-light-green);
    border-radius: 12px;
    padding: 40px 32px 32px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.9) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: var(--success-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon i {
    font-size: 28px;
    color: white;
}

.success-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 12px;
}

.success-message {
    font-size: 14px;
    color: var(--text-white);
    margin-bottom: 32px;
    line-height: 1.5;
}
.done-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.done-btn:hover {
    background: var(--primary-blue-hover);
}


/* Checkbox Container Styles */
  
  .checkbox-item {
    /* margin-bottom: 12px; */
    position: relative;
    padding-left: 24px;
    /* cursor: pointer; */
    /* font-size: 15px; */
    /* color: #333; */
    transition: all 0.2s ease;
  }
  
  .checkbox-item:hover {
    color: #165BAD;
  }
  
  /* Hide the default checkbox */
  .checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  
  /* Custom checkbox */
  .checkbox-item label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 14px;
    height: 14px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    background-color: white;
    transition: all 0.2s ease;
  }
  
  /* Checkmark style */
  .checkbox-item label:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 7px;
    width: 3px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.2s ease;
  }
  
  /* Checkbox checked state */
  .checkbox-item input[type="checkbox"]:checked + label:before {
    background-color: #165BAD;
    border-color: #165BAD;
  }
  
  .checkbox-item input[type="checkbox"]:checked + label:after {
    opacity: 1;
  }
  
  /* Focus state */
  .checkbox-item input[type="checkbox"]:focus + label:before {
    box-shadow: 0 0 0 3px rgba(22, 91, 173, 0.2);
    border-color: #165BAD;
  }
  
  /* Disabled state */
  .checkbox-item input[type="checkbox"]:disabled + label {
    color: #9CA3AF;
    cursor: not-allowed;
  }
  
  .checkbox-item input[type="checkbox"]:disabled + label:before {
    background-color: #F3F4F6;
    border-color: #D1D5DB;
  }

/* Responsive Design */
@media (max-width: 640px) {
    
    body {
        align-items: flex-start;
        padding: 20px 8px;
    }

    .container {
        padding: 6px;
    }
    
    .feedback-form {
        padding: 12px 12px 16px;
    }
    
    .response-content {
        padding: 40vh 32px 35vh;;
    }

    .form-subtitle {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .question-title {
        font-size: 16px;
    }
    
    .rating-container {
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .rating-option {
        padding: 12px 8px;
    }
    
    .emoji {
        font-size: 28px;
    }
    
    .rating-label {
        font-size: 13px;
    }
    
    .success-modal {
        margin: 20px;
        padding: 32px 24px 24px;
    }

    .feedback-label {
        font-size: 14px;
    }

    .submit-btn {
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {

    .rating-container {
        gap: 8px;
    }
    
    .rating-option {
        padding: 12px 8px;
    }
    
    .emoji {
        font-size: 24px;
    }
    
    .rating-label {
        font-size: 12px;
    }
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.submit-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
