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

:root {
    --primary-color: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #f8bbd0;
    --secondary-color: #673ab7;
    --success-color: #4caf50;
    --error-color: #f44336;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --border-color: #e0e6ed;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header Styles */
.survey-header {
    background: #000000;
    color: white;
    padding: 40px;
    text-align: center;
}

.logo-container {
    margin-bottom: 25px;
}

.company-logo {
    max-width: 400px;
    height: auto;
    display: inline-block;
}

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

.survey-header h1 i {
    margin-right: 10px;
}

.survey-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 10px;
}

.survey-header .subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

/* Form Styles */
.survey-form {
    padding: 40px;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    font-size: 1.3rem;
}

.section-description {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.required {
    color: var(--error-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

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

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.service-checkbox {
    position: relative;
    height: 100%;
}

.service-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.service-checkbox label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    height: 100%;
    min-height: 60px;
}

.service-checkbox label i {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.service-checkbox label span {
    flex: 1;
}

.service-checkbox input:checked + label {
    background: var(--primary-light);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.service-checkbox label:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Rating Section Styles */
.rating-section {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    border: none !important;
}

.ratings-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rating-row {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.rating-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 1rem;
}

.rating-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rating-option {
    position: relative;
    cursor: pointer;
}

.rating-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.rating-option .rating-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.rating-option:hover .rating-number {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.rating-option input:checked + .rating-number {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

/* Error Message */
.error-message {
    background: #ffebee;
    color: var(--error-color);
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid var(--error-color);
    font-weight: 500;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Message */
.success-message {
    padding: 60px 40px;
    text-align: center;
}

.success-content {
    max-width: 500px;
    margin: 0 auto;
}

.success-content i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-content h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.success-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.success-note {
    background: #e3f2fd;
    color: #1976d2;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-note i {
    font-size: 1.2rem;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.btn-primary-action {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.btn-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.5);
}

.btn-primary-action i {
    font-size: 1.2rem;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 15px;
    }
    
    .survey-header {
        padding: 30px 20px;
    }
    
    .company-logo {
        max-width: 300px;
    }
    
    .survey-header h1 {
        font-size: 2rem;
    }
    
    .survey-header h2 {
        font-size: 1.2rem;
    }
    
    .survey-form {
        padding: 30px 20px;
    }
    
    .form-section {
        margin-bottom: 30px;
        padding-bottom: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .rating-options {
        justify-content: space-between;
    }
    
    .rating-option .rating-number {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .success-actions {
        gap: 12px;
    }
    
    .btn-primary-action,
    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .company-logo {
        max-width: 250px;
    }
    
    .survey-header h1 {
        font-size: 1.5rem;
    }
    
    .rating-option .rating-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    animation: fadeIn 0.5s ease-out;
}

/* Admin Access Footer */
.admin-footer {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.admin-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-link:hover {
    color: var(--primary-color);
}

.admin-link i {
    font-size: 0.85rem;
}

/* Admin Login Modal */
.admin-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.admin-modal-content {
    background: var(--bg-white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.3s ease-out;
}

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

.admin-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.admin-close:hover {
    color: var(--error-color);
}

.admin-modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
}

.admin-modal-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.admin-form-group {
    margin-bottom: 25px;
}

.admin-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.admin-form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.admin-hint {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

.admin-error {
    background: #ffebee;
    color: var(--error-color);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--error-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.admin-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.admin-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.5);
}

.admin-submit-btn:active {
    transform: translateY(0);
}

/* Responsive Admin Modal */
@media (max-width: 768px) {
    .admin-modal-content {
        margin: 10% 20px;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .admin-modal-content {
        margin: 5% 15px;
    }
    
    .admin-modal-content h2 {
        font-size: 1.5rem;
    }
}
