/* Installation Questionnaire Styles v1.0 */

.install-hero {
    background: linear-gradient(135deg, #2196F3 0%, #0a5ab8 100%);
    padding: 60px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.install-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.install-hero p {
    font-size: 18px;
    opacity: 0.92;
    max-width: 720px;
    margin: 0 auto;
}

.install-badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    backdrop-filter: blur(6px);
}

.install-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-card h3 {
    color: #042964;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-card .subtitle {
    color: #666;
    margin-bottom: 25px;
}

.form-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 4px solid #0166DC;
}

.section-title {
    color: #042964;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.section-title i {
    margin-right: 10px;
    color: #0166DC;
}

.subsection-title {
    color: #042964;
    font-size: 15px;
    font-weight: 600;
    margin: 20px 0 15px;
    padding-top: 15px;
    border-top: 1px dashed #dee2e6;
}

.field-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.field-hint {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.mb-20 {
    margin-bottom: 20px;
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.toggle-group:hover {
    border-color: #0166DC;
    box-shadow: 0 2px 8px rgba(1, 102, 220, 0.1);
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #28a745;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-label {
    font-weight: 500;
    color: #333;
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.toggle-label small {
    color: #888;
    font-weight: 400;
}

.toggle-status {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    min-width: 40px;
    text-align: center;
}

.toggle-status.yes {
    background: #d4edda;
    color: #155724;
}

.toggle-status.no {
    background: #f8d7da;
    color: #721c24;
}

.conditional-field {
    display: none;
    padding: 15px 20px;
    margin: -5px 0 12px 0;
    background: #e8f4fd;
    border-radius: 0 0 8px 8px;
    border-left: 3px solid #0166DC;
}

.conditional-field.show {
    display: block;
}

.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 10px;
}

.file-upload-area:hover {
    border-color: #0166DC;
    background: #f0f7ff;
}

.file-upload-area.dragover {
    border-color: #28a745;
    background: #e8f5e9;
}

.file-upload-area i {
    font-size: 40px;
    color: #0166DC;
    margin-bottom: 15px;
    display: block;
}

.file-upload-area p {
    margin: 0;
    color: #666;
}

.file-upload-area .file-types {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.file-list {
    margin-bottom: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #e8f5e9;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #c3e6cb;
}

.file-item .file-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #155724;
    font-weight: 500;
}

.file-item .file-name i {
    color: #28a745;
}

.file-item .remove-file {
    color: #dc3545;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.file-item .remove-file:hover {
    background: #f8d7da;
}

.progress-bar-container {
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #0166DC, #28a745);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.info-box {
    background: #e3f2fd;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid #0166DC;
    margin-bottom: 20px;
    color: #0d47a1;
    font-size: 14px;
}

.info-box i {
    margin-right: 8px;
}

.credential-template {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.credential-template p {
    margin-bottom: 10px;
    color: #333;
}

.credential-template pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #555;
    line-height: 1.5;
}

.attention-section {
    border-left-color: #dc3545;
    background: #fff8f8;
}

.attention-section .section-title {
    color: #dc3545;
}

.attention-section .section-title i {
    color: #dc3545;
}

.attention-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.attention-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #555;
    font-size: 14px;
}

.attention-list li:before {
    content: "x";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

.disclaimer-section {
    border-left-color: #856404;
    background: #fff8e6;
}

.disclaimer-section .section-title {
    color: #856404;
}

.disclaimer-section .section-title i {
    color: #856404;
}

.disclaimer-text {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

.disclaimer-text p {
    margin-bottom: 12px;
}

.disclaimer-text p:last-child {
    margin-bottom: 0;
}

.disclaimer-text strong {
    color: #333;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    transform: scale(1.2);
    cursor: pointer;
}

.btn-submit {
    background: linear-gradient(135deg, #0166DC 0%, #0a5ab8 100%);
    color: #fff;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100%;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #0a5ab8 0%, #042964 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(1, 102, 220, 0.3);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(135deg, #999 0%, #777 100%);
    box-shadow: none;
}

.theme-input-style.is-invalid,
select.is-invalid {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.theme-input-style.is-invalid:focus,
select.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
    outline: none;
}

input[type="checkbox"].is-invalid {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .install-hero h1 {
        font-size: 28px;
    }

    .form-card {
        padding: 25px;
    }

    .form-section {
        padding: 20px;
    }

    .toggle-group {
        flex-wrap: wrap;
    }

    .toggle-label {
        order: 3;
        width: 100%;
        margin-top: 8px;
    }
}
