/* NPS Scale Labels */
.scale-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #888;
}

/* Import fonts (similar to doesn't matter) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A90E2; /* Light Blue for headers and titles */
    --bg-color: #FFFFFF; /* White background */
    --section-divider: #F2F2F2; /* Light Grey for section dividers */
    --text-color: #333333; /* Dark Grey for body text */
    --secondary-text: #666666; /* Lighter grey for secondary text */
    --primary-button: #28a745; /* Green for primary buttons */
    --secondary-button: #FFA500; /* Orange for secondary buttons */
    --error-text: #e74c3c; /* Red for warnings or errors */
    --hover-color: #f4d03f; /* Soft Yellow for hover effects */
    --border-color: #E0E0E0; /* Light border color */
    --container-width: 1200px;
}

/* Template grid styles for survey template selection */
.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.template-square {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 15px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    background-color: rgba(30, 30, 50, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 150px;
}

.template-square:hover {
    transform: translateY(-5px);
    background-color: rgba(40, 40, 60, 0.7);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 184, 217, 0.2);
}

.template-square input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.template-square label {
    cursor: pointer;
    font-size: 18px;
    color: var(--light-text);
    font-weight: 500;
    transition: all 0.2s ease;
}

.template-square:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background-color: rgba(0, 184, 217, 0.1);
    box-shadow: 0 5px 20px rgba(0, 184, 217, 0.3);
}

.template-square input[type="radio"]:checked + label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive styles for template grid */
@media (max-width: 768px) {
    .template-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .template-square {
        height: 120px;
        padding: 20px 15px;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    padding: 40px 0 20px;
    text-align: center;
    background-color: var(--section-divider);
}

.header-top {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Admin login button */
.admin-login-btn {
    background-color: var(--primary-button);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(123, 104, 238, 0.3);
    position: relative;
    overflow: hidden;
}

.admin-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(123, 104, 238, 0.5);
    background-color: #6a5acd;
}

.admin-login-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(123, 104, 238, 0.4);
}

/* Navigation styles */
.main-nav {
    margin: 20px 0;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
    background-color: var(--hover-color);
}

.premium-link, .free-link {
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
    padding: 5px 15px !important;
}

.premium-link:hover, .free-link:hover {
    background-color: rgba(0, 184, 217, 0.1) !important;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.highlight {
    color: var(--primary-color);
    margin-left: 10px;
}

.tagline {
    font-size: 1.5rem;
    color: var(--secondary-text);
    margin-bottom: 30px;
    text-align: left;
}

/* Main content styles */
main {
    padding: 40px 0 80px;
}

.survey-intro {
    text-align: center;
    margin-bottom: 50px;
}

.survey-intro h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.about-content {
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-color);
}

.survey-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.survey-type {
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.survey-type:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--hover-color);
    background-color: var(--hover-color);
}

.survey-type h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.survey-type p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .survey-types {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Survey section styles */
.survey-section {
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.survey-section h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

/* Question styles */
.question-container {
    margin-bottom: 30px;
}

.question {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Likert scale styles */
.likert-scale {
    display: flex;
    justify-content: space-between;
    background-color: var(--section-divider);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.likert-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 20%;
}

.likert-option input[type="radio"] {
    margin-bottom: 8px;
    cursor: pointer;
    accent-color: var(--primary-color);
    transform: scale(1.2);
}

.likert-option label {
    font-size: 0.85rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Button styles */
.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.primary {
    background-color: var(--primary-button);
    color: white;
    border: none;
}

.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    background-color: #218838; /* Darker green on hover */
}

.secondary {
    background-color: var(--secondary-button);
    color: white;
    border: none;
}

.secondary:hover {
    background-color: #e69500; /* Darker orange on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

/* Footer styles */
footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--section-divider);
    background-color: var(--section-divider);
}

/* Info Sections */
.info-section {
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.info-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Product Cards */
.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    background-color: var(--hover-color);
    border-color: var(--hover-color);
}

.product-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-card p {
    margin-bottom: 10px;
}

.product-card .btn {
    margin-top: 15px;
}


/* Product Images */
.product-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.product-image {
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.product-image:hover {
    transform: translateY(-5px);
    background-color: var(--hover-color);
    border-color: var(--hover-color);
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.product-image h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .product-images {
        grid-template-columns: 1fr;
    }
}

/* Modal styles for image enlargement */
/* Character counter styles */
.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--secondary-text);
    margin-top: 5px;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    padding: 10px 0;
    height: 150px;
    font-size: 1.2rem;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
    text-decoration: none;
}

/* Add animation */
.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}






.premium-card {
    border: 1px solid var(--primary-color);
    background-color: rgba(74, 144, 226, 0.05);
}

.current-plan {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 15px;
}

/* Links List */
.links-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.links-list li {
    margin-bottom: 10px;
}

.links-list a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
    background-color: var(--section-divider);
    transition: all 0.3s ease;
}

.links-list a:hover {
    background-color: var(--hover-color);
    color: var(--text-color);
}

@media (max-width: 768px) {
    .product-cards {
        grid-template-columns: 1fr;
    }
    
    .links-list {
        grid-template-columns: 1fr;
    }
}

footer p {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
        text-align: left;
    }
    
    .likert-scale {
        flex-direction: column;
    }
    
    .likert-option {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid var(--section-divider);
    }
    
    .likert-option:last-child {
        border-bottom: none;
    }
    
    .likert-option label {
        width: 80%;
        text-align: left;
    }
    
    .button-container {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Checkbox styles */
.checkbox-group {
    margin-top: 15px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    display: inline-block;
    height: 20px;
    width: 20px;
    margin-right: 10px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: var(--hover-color);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Session URL container */
.session-url-container {
    display: flex;
    margin: 15px 0;
}

.session-url-container input {
    flex: 1;
    padding: 12px;
    border-radius: 5px 0 0 5px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 16px;
}

.session-url-container button {
    border-radius: 0 5px 5px 0;
    margin: 0;
}

/* Session actions */
.session-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Sessions list */
.sessions-list {
    margin-top: 20px;
}

.session-item {
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    display: flex;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    justify-content: space-between;
    align-items: center;
}

.session-info {
    flex: 1;
}

.session-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.session-info p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.session-actions-compact {
    display: flex;
    gap: 10px;
}

.session-actions-compact .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Clamp product image size across layouts */
.product-image img,
.product-card img,
.product-images > img {
  width: 100%;
  height: auto;
  max-height: 220px;   /* tweak this number to taste */
  object-fit: contain; /* keeps full image visible */
  display: block;
  margin: 0 auto;
}

/* Make the grid a bit more flexible on narrow screens */
.product-images {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* (Optional) keep the card heights consistent */
.product-image {
  min-height: 320px;   /* adjust if your titles/descriptions vary */
}