/* Device Registration Page Styles */

/* Main Container */
.registration-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Device Info Section */
.device-info-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    margin-bottom: 2rem;
}

.device-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.device-info-icon {
    font-size: 2rem;
    color: #4e2487;
    margin-right: 1rem;
}

.device-info-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.device-details {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.device-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #eaeaea;
}

.device-text-info {
    flex: 1;
}

.device-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.device-brand {
    font-size: 1rem;
    color: #666;
    margin: 0 0 1rem 0;
}

.selected-services-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
}

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

.service-item {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    margin: 0.25rem 0;
    border-radius: 6px;
    border-left: 3px solid #4e2487;
    font-size: 0.9rem;
    color: #555;
}

/* Registration Form Section */
.registration-form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
}

.form-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.form-icon {
    font-size: 2rem;
    color: #4e2487;
    margin-right: 1rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-label.required::after {
    content: ' *';
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #4e2487;
    box-shadow: 0 0 0 0.2rem rgba(78, 36, 135, 0.25);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Location Section */
.location-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.location-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.location-icon {
    font-size: 1.25rem;
    color: #4e2487;
    margin-right: 0.5rem;
}

.location-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.location-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.location-consent {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.location-consent input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-top: 0.2rem;
}

.location-consent label {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

.location-button-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.location-status {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin: 0;
}

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

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

.location-status.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Hidden location inputs */
.location-inputs {
    display: none;
}

/* Submit Button */
.submit-button {
    background: #4e2487;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.submit-button:hover:not(:disabled) {
    background: #3a1d6b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 36, 135, 0.3);
}

.submit-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-button i {
    margin-right: 0.5rem;
}

/* Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: none;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .registration-container {
        padding: 1rem 0.5rem;
    }
    
    .device-info-section,
    .registration-form-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .device-details {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .device-image {
        width: 100px;
        height: 100px;
    }
    
    .form-header,
    .device-info-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .form-icon,
    .device-info-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .location-button-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .location-status {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .device-info-section,
    .registration-form-section {
        padding: 1rem;
    }
    
    .device-title {
        font-size: 1.1rem;
    }
    
    .form-title,
    .device-info-title {
        font-size: 1.25rem;
    }
    
    .submit-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-loading {
    position: relative;
}

.btn-loading .btn-text {
    opacity: 0;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Accessibility */
.form-control:focus,
.submit-button:focus {
    outline: 2px solid #4e2487;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .location-section,
    .submit-button {
        display: none;
    }
    
    .device-info-section,
    .registration-form-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
