/* Shutter CRM Form Styles */
.shutter-crm-container {
    max-width: 800px;
    margin: 2rem auto;
}

.shutter-crm-loading {
    text-align: center;
    padding: 3rem;
}

.shutter-crm-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.shutter-crm-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.shutter-fieldset {
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
}

.shutter-fieldset legend {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0 0.5rem;
    color: #333;
}

.shutter-form-field {
    margin-bottom: 1.25rem;
}

.shutter-form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.shutter-form-field .required {
    color: #e74c3c;
}

.shutter-form-field input[type="text"],
.shutter-form-field input[type="email"],
.shutter-form-field input[type="tel"],
.shutter-form-field input[type="date"],
.shutter-form-field input[type="datetime-local"],
.shutter-form-field input[type="time"],
.shutter-form-field input[type="number"],
.shutter-form-field select,
.shutter-form-field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
    max-width: 100%;
}

.shutter-form-field input:focus,
.shutter-form-field select:focus,
.shutter-form-field textarea:focus {
    outline: none;
    border-color: #3498db;
}

.shutter-services-list {
    display: grid;
    grid-template-columns: 1fr; /* force single column: one service per row */
    gap: 1rem;
}

.shutter-services-caption {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 0.75rem 0;
}

.shutter-service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.shutter-service-item:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

/* Custom round checkbox look (keeps native input for accessibility but restyles) */
.shutter-service-item input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cfcfcf;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    flex: 0 0 auto;
    position: relative;
    transition: all 0.18s ease;
    background: #fff;
}

.shutter-service-item input[type="checkbox"]:checked {
    background: #3498db;
    border-color: #3498db;
}

.shutter-service-item input[type="checkbox"]:checked::after {
    content: '\2713';
    color: #fff;
    font-size: 14px;
    line-height: 18px;
    position: absolute;
    left: 4px;
    top: 0px;
}

.shutter-service-item .service-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.shutter-service-item .service-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.shutter-service-item .service-description {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.shutter-service-item .service-price {
    font-weight: 700;
    color: #27ae60;
}

.shutter-form-actions {
    text-align: center;
    margin-top: 2rem;
}

.shutter-submit-btn {
    background: #3498db;
    color: #fff;
    padding: 1rem 3rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.shutter-submit-btn:hover:not(:disabled) {
    background: #2980b9;
}

.shutter-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.shutter-message {
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.shutter-message .shutter-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    fill: currentColor;
}

.shutter-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.shutter-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .shutter-crm-form {
        padding: 1rem;
    }
    
    .shutter-services-list {
        grid-template-columns: 1fr;
    }
}