/* CT - Abrir Chamado Moderno Styles */

:root {
    --ct-primary: #0073aa;
    --ct-primary-light: #00a0d2;
    --ct-primary-dark: #005a87;
    --ct-success: #28a745;
    --ct-warning: #ffc107;
    --ct-danger: #dc3545;
    --ct-info: #17a2b8;
    --ct-light: #f8f9fa;
    --ct-text: #333;
    --ct-border: #e0e0e0;
    --ct-shadow: 0 2px 4px rgba(0,0,0,0.08);
    --ct-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --ct-radius: 12px;
    --ct-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ct-chamado-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.ct-chamado-header {
    background: linear-gradient(135deg, var(--ct-primary) 0%, var(--ct-primary-dark) 100%);
    color: white;
    padding: 40px 30px;
    border-radius: var(--ct-radius);
    margin-bottom: 40px;
    box-shadow: var(--ct-shadow-md);
}

.ct-chamado-header-content h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ct-chamado-header-content p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Progress Bar */
.ct-chamado-progress {
    margin-bottom: 40px;
}

.ct-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--ct-border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 30px;
}

.ct-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ct-primary), var(--ct-primary-light));
    transition: width 0.4s ease;
}

.ct-progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.ct-progress-step {
    flex: 1;
    text-align: center;
    opacity: 0.5;
    transition: var(--ct-transition);
}

.ct-progress-step.active {
    opacity: 1;
}

.ct-step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ct-light);
    border: 2px solid var(--ct-border);
    font-weight: 700;
    color: var(--ct-text);
    margin-bottom: 10px;
    transition: var(--ct-transition);
}

.ct-progress-step.active .ct-step-circle {
    background: var(--ct-primary);
    border-color: var(--ct-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.ct-step-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ct-text);
}

/* Form */
.ct-chamado-form {
    background: white;
    border-radius: var(--ct-radius);
    padding: 40px;
    box-shadow: var(--ct-shadow-md);
    margin-bottom: 30px;
}

.ct-form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.ct-form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ct-form-section {
    margin-bottom: 30px;
}

.ct-form-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--ct-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ct-form-section h3 i {
    color: var(--ct-primary);
    font-size: 1.4rem;
}

/* Equipamentos Grid */
.ct-equipamentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.ct-equipamento-card {
    display: block;
    padding: 20px;
    border: 2px solid var(--ct-border);
    border-radius: var(--ct-radius);
    cursor: pointer;
    transition: var(--ct-transition);
    background: white;
}

.ct-equipamento-card:hover {
    border-color: var(--ct-primary);
    box-shadow: var(--ct-shadow-md);
}

.ct-equipamento-card input[type="radio"] {
    display: none;
}

.ct-equipamento-card input[type="radio"]:checked + .ct-equipamento-content {
    color: var(--ct-primary);
}

.ct-equipamento-card input[type="radio"]:checked ~ * {
    border-color: var(--ct-primary);
}

.ct-equipamento-content h4 {
    margin-bottom: 10px;
    font-weight: 600;
}

.ct-equipamento-info {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
}

.ct-equipamento-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Serviços Grid */
.ct-servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.ct-servico-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    border: 2px solid var(--ct-border);
    border-radius: var(--ct-radius);
    cursor: pointer;
    transition: var(--ct-transition);
    text-align: center;
    background: white;
}

.ct-servico-card:hover {
    border-color: var(--ct-primary);
    box-shadow: var(--ct-shadow-md);
    transform: translateY(-4px);
}

.ct-servico-card input[type="radio"] {
    display: none;
}

.ct-servico-card input[type="radio"]:checked + .ct-servico-icon {
    color: white;
    background: var(--ct-primary);
}

.ct-servico-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--ct-primary);
    transition: var(--ct-transition);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 115, 170, 0.1);
}

.ct-servico-card h4 {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1rem;
}

.ct-servico-card p {
    font-size: 0.85rem;
    color: #666;
}

/* Prioridade Buttons */
.ct-prioridade-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.ct-prioridade-btn {
    position: relative;
    padding: 20px;
    border: 2px solid var(--ct-border);
    border-radius: var(--ct-radius);
    cursor: pointer;
    transition: var(--ct-transition);
    background: white;
}

.ct-prioridade-btn input[type="radio"] {
    display: none;
}

.ct-prioridade-btn input[type="radio"]:checked ~ .ct-prioridade-badge {
    opacity: 1;
}

.ct-prioridade-btn.prioridade-baixa .ct-prioridade-badge {
    background: #28a745;
}

.ct-prioridade-btn.prioridade-media .ct-prioridade-badge {
    background: #ffc107;
    color: #000;
}

.ct-prioridade-btn.prioridade-alta .ct-prioridade-badge {
    background: #dc3545;
}

.ct-prioridade-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.6;
    transition: var(--ct-transition);
}

.ct-prioridade-btn p {
    font-size: 0.9rem;
    color: #666;
}

/* BTU Selector */
.ct-btu-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.ct-btu-option {
    cursor: pointer;
}

.ct-btu-option input[type="radio"] {
    display: none;
}

.ct-btu-card {
    padding: 20px;
    border: 2px solid var(--ct-border);
    border-radius: var(--ct-radius);
    text-align: center;
    transition: var(--ct-transition);
    background: white;
}

.ct-btu-option input[type="radio"]:checked + .ct-btu-card {
    border-color: var(--ct-primary);
    background: rgba(0, 115, 170, 0.05);
    box-shadow: var(--ct-shadow-md);
}

.ct-btu-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ct-text);
}

.ct-btu-price {
    display: block;
    font-size: 1.4rem;
    color: var(--ct-primary);
    font-weight: 700;
}

/* Summary */
.ct-summary {
    background: var(--ct-light);
    padding: 25px;
    border-radius: var(--ct-radius);
    margin-bottom: 20px;
}

.ct-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--ct-border);
}

.ct-summary-row:last-of-type {
    border-bottom: none;
}

.ct-summary-label {
    font-weight: 600;
    color: var(--ct-text);
}

.ct-summary-value {
    color: var(--ct-primary);
    font-weight: 600;
}

.ct-summary-total {
    background: white;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.2rem;
}

.ct-separator {
    height: 1px;
    background: var(--ct-border);
    margin: 20px 0;
}

/* Textarea */
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--ct-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--ct-primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Form Input */
.ct-form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--ct-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}

.ct-form-input:focus {
    outline: none;
    border-color: var(--ct-primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Local Buttons */
.ct-local-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.ct-local-btn {
    position: relative;
    padding: 0;
    cursor: pointer;
}

.ct-local-btn input[type="radio"] {
    display: none;
}

.ct-local-badge {
    display: block;
    padding: 15px 12px;
    border: 2px solid var(--ct-border);
    border-radius: var(--ct-radius);
    text-align: center;
    font-weight: 600;
    background: white;
    transition: var(--ct-transition);
    cursor: pointer;
}

.ct-local-btn input[type="radio"]:checked + .ct-local-badge {
    border-color: var(--ct-primary);
    background: rgba(0, 115, 170, 0.1);
    color: var(--ct-primary);
    box-shadow: var(--ct-shadow-md);
}

.ct-local-btn:hover .ct-local-badge {
    border-color: var(--ct-primary);
    box-shadow: var(--ct-shadow);
}

/* Alerts */
.ct-alert {
    padding: 15px 20px;
    border-radius: var(--ct-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ct-alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
    border-left: 4px solid #17a2b8;
}

.ct-alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.ct-alert i {
    font-size: 1.2rem;
}

/* Navigation Buttons */
.ct-form-navigation {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

.ct-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ct-transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ct-btn-primary {
    background: var(--ct-primary);
    color: white;
}

.ct-btn-primary:hover {
    background: var(--ct-primary-dark);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.ct-btn-secondary {
    background: var(--ct-light);
    color: var(--ct-text);
    border: 1px solid var(--ct-border);
}

.ct-btn-secondary:hover {
    background: white;
    border-color: var(--ct-primary);
    color: var(--ct-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .ct-chamado-container {
        padding: 10px;
    }

    .ct-chamado-form {
        padding: 20px;
    }

    .ct-chamado-header-content h1 {
        font-size: 1.6rem;
    }

    .ct-equipamentos-grid,
    .ct-servicos-grid {
        grid-template-columns: 1fr;
    }

    .ct-form-navigation {
        flex-direction: column;
    }

    .ct-btn {
        width: 100%;
        justify-content: center;
    }
}
